VIM插件管理及python環(huán)境配置-the5fire.ppt
VIM插件管理及python開發(fā)環(huán)境配置,by胡陽2013-03-01blog:,一般情況下的VIM插件管理,插件,為何如此麻煩?,看樣子你需要vundle,一個插件管理工具,來看看吧,vundle,gitclone,STEP1,STEP2,setnocompatible"beiMprovedfiletypeoff"required!setrtp+=/.vim/bundle/vundle/callvundle#rc()"letVundlemanageVundle"required!Bundlegmarik/vundle"MyBundleshere:""originalreposongithubBundletpope/vim-fugitiveBundleLokaltog/vim-easymotionBundlerstacruz/sparkup,rtp:vim/Bundletpope/vim-rails.git"vim-scriptsreposBundleL9BundleFuzzyFinder"nongithubreposBundlegit:/,初始配置.vimrc,然后BundleInstall,要裝這些,STEP3,ctrlp.vim"ctrl+p文件快速跳轉jedi-vim"代碼智能提示lusty"最近打開過的文件nerdtree"目錄樹Syntastic/"代碼規(guī)范檢查vim-fugitive"git狀態(tài),上git一搜即可,STEP4,比如:ctrlp.vim,Bundle?Bundledavidhalter/jedi-vimBundlesjbach/lustyBundlescrooloose/nerdtreeBundlevim-scripts/Syntastic"需要flake8Bundletpope/vim-fugitive,刪除和更新,STEP5,:BundleClean:BundleInstall!,.vimrc配置三部分,STEP6,插件管理,基礎配置,鍵盤映射,一、插件管理,STEP7,"配置vundle安裝setnocompatible"beiMprovedfiletypeoff"required!setrtp+=/.vim/bundle/vundle/callvundle#rc()"letVundlemanageVundle"required!Bundlegmarik/vundle"MyBundleshere:"originalreposongithubBundledavidhalter/jedi-vimBundlescrooloose/nerdtreeBundlekien/ctrlp.vimBundlesjbach/lustyBundletpope/vim-fugitiveBundlevim-scripts/Syntastic"vim-scriptsreposBundleL9"nongithubrepos"Bundlegit:/,二、基礎配置,STEP8,""一些基本配置"filetypepluginindenton"required!letmapleader=,letg:mapleader=,"Ignorecasewhensearchingsetignorecase"Whensearchingtrytobesmartaboutcasessetsmartcase"Highlightsearchresultssethlsearch"Makessearchactlikesearchinmodernbrowserssetincsearch"Usespacesinsteadoftabssetexpandtab"Besmartwhenusingtabs;)setsmarttab,"1tab=4spacessetshiftwidth=4settabstop=4"Alwaysshowcurrentpositionsetruler"""Heightofthecommandbarsetcmdheight=2"狀態(tài)欄配置setlaststatus=2"alwayshasstatuslinesetstatusline=%F%m%r%h%wTYPE=%YPOS=%04l,%04v%p%setstatusline+=%=%fugitive#statusline()setstatusline+=%SyntasticStatuslineFlag(),三、鍵盤映射,STEP9,""插件相關配置""NERDTree=nmap:NERDTreeToggleletNERDTreeWinSize=22letNERDTreeIgnore=.pyc,.swp"switchwindownnoremaphnnoremapjnnoremapknnoremapl"LustyBufferExplorer=nnoremaplb:LustyBufExplorersethidden,演示,常用操作整理,相關資源,pathogen-另一款插件管理工具,ThanksQ&A,