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
####下载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