主要是適配python開發(fā). 都是些github star超高之作.
首先,用vundle來管理插件:
** github stars: 10,272 **
地址: github/vundle
我的vundle list:
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
Plugin 'Valloric/YouCompleteMe'
Plugin 'tmhedberg/SimpylFold'
Plugin 'scrooloose/syntastic'
Plugin 'nvie/vim-flake8'
Plugin 'altercation/vim-colors-solarized'
Plugin 'scrooloose/nerdtree'
Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
最難折騰的:YouCompleteMe
** github stars: 9,475 **
需要編譯后才能用, 還有幾個依賴要裝. 在mac上還必須得裝macvim, 如果自己編譯過python的話, 更是無數(shù)多坑. 當(dāng)初我為TA折騰了整兩天... 不過很值得,最好的自動補(bǔ)全,幾乎支持所有語言.
效果:
炒雞簡單的折疊: SimplyFold
** github stars: 102 **
可以在vimrc里把空格熱鍵成ZA:
" Enable folding with the spacebar
nnoremap <space> za
效果:
屏幕快照 2016-01-02 下午1.37.07.png
靜態(tài)語法檢查: syntastic
** github star: 5,951**
屏幕快照 2016-01-02 下午1.45.02.png
pep8檢查: vim-flake8
** github stars: 418**
我是個重度pep8強(qiáng)迫癥患者, 這絕逼是治療我的神器...
得先裝flake8第三方庫:
pip install flake8
效果:
屏幕快照 2016-01-02 下午1.53.52.png
樹狀導(dǎo)航: nerdtree
** github stars: 5,667**
多tab的nerdtree支持: vim-nerdtree-tabs
有了TA, vim瞬間提高不止一個bigger...
效果:
屏幕快照 2016-01-02 下午1.57.11.png
震撼的powerline: powerline
** github stars: 2,640**
效果:
screenshot.png
最后再貼上我的.vimrc, 歡迎試用.