资源描述
VIM插件管理及python开发环境配置,by胡阳2013-03-01blog:,一般情况下的VIM插件管理,插件,为何如此麻烦?,看样子你需要vundle,一个插件管理工具,来看看吧,vundle,gitclone,STEP1,STEP2,setnocompatiblebeiMprovedfiletypeoffrequired!setrtp+=/.vim/bundle/vundle/callvundle#rc()letVundlemanageVundlerequired!Bundlegmarik/vundleMyBundleshere:originalreposongithubBundletpope/vim-fugitiveBundleLokaltog/vim-easymotionBundlerstacruz/sparkup,rtp:vim/Bundletpope/vim-rails.gitvim-scriptsreposBundleL9BundleFuzzyFindernongithubreposBundlegit:/,初始配置.vimrc,然后BundleInstall,要装这些,STEP3,ctrlp.vimctrl+p文件快速跳转jedi-vim代码智能提示lusty最近打开过的文件nerdtree目录树Syntastic/代码规范检查vim-fugitivegit状态,上git一搜即可,STEP4,比如:ctrlp.vim,Bundle?Bundledavidhalter/jedi-vimBundlesjbach/lustyBundlescrooloose/nerdtreeBundlevim-scripts/Syntastic需要flake8Bundletpope/vim-fugitive,删除和更新,STEP5,:BundleClean:BundleInstall!,.vimrc配置三部分,STEP6,插件管理,基础配置,键盘映射,一、插件管理,STEP7,配置vundle安装setnocompatiblebeiMprovedfiletypeoffrequired!setrtp+=/.vim/bundle/vundle/callvundle#rc()letVundlemanageVundlerequired!Bundlegmarik/vundleMyBundleshere:originalreposongithubBundledavidhalter/jedi-vimBundlescrooloose/nerdtreeBundlekien/ctrlp.vimBundlesjbach/lustyBundletpope/vim-fugitiveBundlevim-scripts/Syntasticvim-scriptsreposBundleL9nongithubreposBundlegit:/,二、基础配置,STEP8,一些基本配置filetypepluginindentonrequired!letmapleader=,letg:mapleader=,IgnorecasewhensearchingsetignorecaseWhensearchingtrytobesmartaboutcasessetsmartcaseHighlightsearchresultssethlsearchMakessearchactlikesearchinmodernbrowserssetincsearchUsespacesinsteadoftabssetexpandtabBesmartwhenusingtabs;)setsmarttab,1tab=4spacessetshiftwidth=4settabstop=4AlwaysshowcurrentpositionsetrulerHeightofthecommandbarsetcmdheight=2状态栏配置setlaststatus=2alwayshasstatuslinesetstatusline=%F%m%r%h%wTYPE=%YPOS=%04l,%04v%p%setstatusline+=%=%fugitive#statusline()setstatusline+=%SyntasticStatuslineFlag(),三、键盘映射,STEP9,插件相关配置NERDTree=nmap:NERDTreeToggleletNERDTreeWinSize=22letNERDTreeIgnore=.pyc,.swpswitchwindownnoremaphnnoremapjnnoremapknnoremaplLustyBufferExplorer=nnoremaplb:LustyBufExplorersethidden,演示,常用操作整理,相关资源,pathogen-另一款插件管理工具,ThanksQ&A,
展开阅读全文