vim 配置 工作流

Vim
au BufRead *.py map <buffer> <F5> :w<CR>:!/usr/bin/env python3 % <CR> set nu set ruler set smartindent syntax on
1
2
3
4
5
6
au BufRead * . py map < buffer > < F5 > : w < CR > : ! / usr / bin / env python3 % < CR >
set nu
 
set ruler
set smartindent
syntax on

# F5 运行python

vim python 配置文件

Python
####下载vundle git clone https://github.com/gmarik/vundle.git ~/.<span class="wp_keywordlink_affiliate"><a href="https://www.168seo.cn/tag/vim" title="View all posts in vim" target="_blank">vim</a></span>/bundle/vundle 在.<span class="wp_keywordlink_affiliate"><a href="https://www.168seo.cn/tag/vim" title="View all posts in vim" target="_blank">vim</a></span>rc 中添加bundle的配置 set nocompatible " be iMproved filetype off " required! set rtp+=~/.<span class="wp_keywordlink_affiliate"><a href="https://www.168seo.cn/tag/vim" title="View all posts in vim" target="_blank">vim</a></span>/bundle/vundle/ call vundle#rc()   " let Vundle manage Vundle Bundle 'gmarik/vundle'   "my Bundle here: " " original repos on github Bundle 'kien/ctrlp.vim' Bundle 'sukima/xmledit' Bundle 'sjl/gundo.vim' Bundle 'jiangmiao/auto-pairs' Bundle 'klen/<span class="wp_keywordlink"><a href="http://www.168seo.cn/python" title="python">python</a></span>-mode' Bundle 'Valloric/ListToggle' Bundle 'SirVer/ultisnips' Bundle 'Valloric/YouCompleteMe' Bundle 'scrooloose/syntastic' Bundle 't9md/vim-quickhl' " Bundle 'Lokaltog/vim-powerline' Bundle 'scrooloose/nerdcommenter' ".................................. " vim-scripts repos Bundle 'YankRing.vim' Bundle 'vcscommand.vim' Bundle 'ShowPairs' Bundle 'SudoEdit.vim' Bundle 'EasyGrep' Bundle 'VOoM' Bundle 'VimIM' ".................................. " non github repos " Bundle 'git://git.wincent.com/command-t.git' "...................................... filetype plugin indent on
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
####下载vundle
 
git clone https : / / github . com / gmarik / vundle . git ~ / . vim / bundle / vundle
 
在 . vimrc 中添加 bundle的配置
set nocompatible " be iMproved
filetype off " required !
set rtp += ~ / . vim / bundle / vundle /
call vundle #rc()
 
" let Vundle manage Vundle
Bundle 'gmarik/vundle'
 
" my Bundle here :
"
" original repos on github
Bundle 'kien/ctrlp.vim'
Bundle 'sukima/xmledit'
Bundle 'sjl/gundo.vim'
Bundle 'jiangmiao/auto-pairs'
Bundle 'klen/python-mode'
Bundle 'Valloric/ListToggle'
Bundle 'SirVer/ultisnips'
Bundle 'Valloric/YouCompleteMe'
Bundle 'scrooloose/syntastic'
Bundle 't9md/vim-quickhl'
" Bundle 'Lokaltog/vim-powerline'
Bundle 'scrooloose/nerdcommenter'
" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
" vim-scripts repos
Bundle 'YankRing.vim'
Bundle 'vcscommand.vim'
Bundle 'ShowPairs'
Bundle 'SudoEdit.vim'
Bundle 'EasyGrep'
Bundle 'VOoM'
Bundle 'VimIM'
" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
" non github repos
" Bundle 'git://git.wincent.com/command-t.git'
" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
filetype plugin indent on

打开一个vim, 运行 :BundleInstall

或者在命令行运行 vim +BundleInstall +qall

安装完成后插件就能用了

####其它常用命令:

  • 更新插件:BundleUpdate
  • 清除不再使用的插件:BundleClean,
  • 列出所有插件:BundleList
  • 查找插件:BundleSearch

 

 




  • zeropython 微信公众号 5868037 QQ号 5868037@qq.com QQ邮箱
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值