个人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检查
效果如下:
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。