个人Vim 配置
包含了YouCompleteMe等插件,monokai风格
set nu! colorscheme monokai set tabstop=4 map :NERDTreeToggle set nocompatible " be iMproved filetype off " required! set rtp+=~/.vim/bundle/Vundle.vim/ call vundle#rc() Bundle 'gmarik/vundle' Bundle 'tpope/vim-fugitive' Bundle 'Lokaltog/vim-easymotion' Bundle 'rstacruz/sparkup', {'rtp': 'vim/'} Bundle 'tpope/vim-rails.git' " vim-scripts repos Bundle 'L9' Bundle 'FuzzyFinder' Bundle 'Valloric/YouCompleteMe' Bundle 'Valloric/ListToggle' Bundle 'scrooloose/syntastic' Bundle 'scrooloose/nerdcommenter' Bundle 'scrooloose/nerdtree' filetype plugin indent on " required!不可以注释,注释后自己写的的comment插件不可以用。 let mapleader = "," nnoremap jd :YcmCompleter GoToDefinitionElseDeclaration nnoremap cc :YcmForceCompileAndDiagnostics let g:ycm_global_ycm_extra_conf = '~/.ycm_extra_conf.py' let g:ycm_confirm_extra_conf = 0 "关闭工程目录加载ycm_extra_conf.py的提示 let g:syntastic_always_populate_loc_list = 1 let g:syntastic_ignore_files=[".*\.py$"] "禁用syntastic来对python检查
效果如下: