vim
1. lang_complete /// 智能补全 $sudo apt-get install clang -y $sudo apt-get install libclang-dev -y https://github.com/Rip-Rip/clang_complete http://www.vim.org/scripts/script.php?script_id=3302 $sudo vi /etc/vim/vimrc set g:clang_snippets=1 set g:clang_close_preview=1 set g:clang_use_library=1 set g:clang_complete_macros=1 set completeopt=menu,longest,preview 2. ctags /// 函数跳转 $sudo apt-get install ctags -y $sudo vi /etc/vim/vimrc set tags+=/home/chef/sf/tags nmap <F4> :!ctags -R .<CR> 3. taglist /// 函数列表 http://www.vim.org/scripts/script.php?script_id=273 $sudo vi /etc/vim/vimrc nmap <F2> :TlistToggle<CR> 4. /// 文件列表 http://www.vim.org/scripts/script.php?script_id=1658 $sudo vi /etc/vim/vimrc nmap <F3> :NERDTree<CR> 5. $sudo vi /etc/vim/vimrc set cc=80 set ts=4 set sw=4 set sts=4 set tw=80 set nu set tabstop=4 set hlsearch set cindent set softtabstop=4 set shiftwidth=4 set ic set expandtab set autochdir autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") set ofu=syntaxcomplete 6. 换配色 $ll /usr/share/vim/vim74/colors/ $vim /etc/vim/vimrc colorscheme default
posted on 2014-08-11 16:36 q191201771 阅读(272) 评论(0) 编辑 收藏 举报