Ubuntu配置C++开发环境以及Vim的配置(2)

你也可以自己下载最新插件版本,下载地方分别为:
- Taglist: ?script_id=273
- Cscope:
- OmniCppComplete: ?script_id=1520
- SuperTab: ?script_id=1643
- NERDTree: ?script_id=1658
- MiniBufExplorer: ?script_id=159
- Winmanager: ?script_id=95

全部.vimrc内容如下: "设置编码 set encoding=utf-8 set fencs=utf-8,ucs-bom,shift-jis,gb18030,gbk,gb2312,cp936 set fileencodings=utf-8,ucs-bom,chinese "语言设置 set langmenu=zh_CN.UTF-8 "设置行号 set nu "设置语法高亮 syntax enable syntax on "设置配色方案 colorscheme desert "可以在buffer的任何地方使用鼠标 set mouse=a set selection=exclusive set selectmode=mouse,key "高亮显示匹配的括号 set showmatch "去掉vi一致性 set nocompatible "设置缩进 set tabstop=4 set softtabstop=4 set shiftwidth=4 set autoindent set cindent if &term=="xterm" set t_Co=8 set t_Sb=^[[4%dm set t_Sf=^[[3%dm endif "打开文件类型自动检测功能 filetype on "Ctags map <C-F12> :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .<CR> "TagList let Tlist_Show_One_File=1 let Tlist_Exit_OnlyWindow=1 "OmniCppComplete set nocp filetype plugin on "SuperTab let g:SuperTabDefaultCompletionType="context" "MiniBufExplorer let g:miniBufExplMapWindowNavVim = 1 let g:miniBufExplMapWindowNavArrows = 1 let g:miniBufExplMapCTabSwitchBufs = 1 let g:miniBufExplModSelTarget = 1 let g:miniBufExplMoreThanOne=0 let g:miniBufExplorerMoreThanOne=0 "NERDTree WinManager let g:NERDTree_title="[NERDTree]" let g:winManagerWindowLayout="NERDTree|TagList" let g:bufExplorerMaxHeight=30 function! NERDTree_Start() exec 'NERDTree' endfunction function! NERDTree_IsValid() return 1 endfunction nmap wm :WMToggle<CR>

Vim入门基础知识集锦 

Vim入门基础教程

把Vim打造成优秀的C++ IDE 

Ubuntu 14.04升级Vim7.4到8.0 

Vim安装youcompleteme自动补全插件 

Linux Vim编辑器使用简单讲解 

Vim文本编辑器 

Vim安装与配置进阶版

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/13404.html