"设置中文帮助文件
set helplang=cn
set encoding=utf-8
"设置语法高亮
syntax enable
syntax on
"设置配色方案
colorscheme desert
"设置TagList
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
"通过WinManager插件来将TagList窗口和netrw窗口整合起来
let g:winManagerWindowLayout='FileExplorer|TagList'
nmap wm :WMToggle<cr>
"设定是否使用 quickfix 窗口来显示 cscope 结果
:set cscopequickfix=s-,c-,d-,i-,t-,e-
"设置cscope的快捷键
nmap <C-_>s :cs find s <C-R>=expand("<cword>")<CR><CR>
nmap <C-_>g :cs find g <C-R>=expand("<cword>")<CR><CR>
nmap <C-_>c :cs find c <C-R>=expand("<cword>")<CR><CR>
nmap <C-_>t :cs find t <C-R>=expand("<cword>")<CR><CR>
nmap <C-_>e :cs find e <C-R>=expand("<cword>")<CR><CR>
nmap <C-_>f :cs find f <C-R>=expand("<cfile>")<CR><CR>
nmap <C-_>i :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
nmap <C-_>d :cs find d <C-R>=expand("<cword>")<CR><CR>
"设置QuickFix错误定位快捷键
nmap <F6> :cn<cr>
nmap <F7> :cp<cr>
"设置MiniBufExplorer
"<C-Tab> 向前循环切换到每个buffer上,并在但前窗口打开
"<C-S-Tab> 向后循环切换到每个buffer上,并在但前窗口打开
let g:miniBufExplMapCTabSwitchBufs = 1
"用<C-箭头键>切换到上下左右窗口中去
let g:miniBufExplMapWindowNavArrows = 1
"按F12时在一个新的buffer中打开c/h文件
nnoremap <silent> <F12> :A<CR>
"设置F3为grep快捷键
nnoremap <silent> <F3> :Grep<CR>
"打开文件类型检测, 加了这句才可以用智能补全
filetype plugin indent on
"关掉智能补全时的预览窗口
set completeopt=longest,menu
"经常在这个工程中编程
set tags=/home/luzhonghui/workspace/Source_Insight/linux-2.6.27.39/tags
"经常使用cscope
cs add /home/luzhonghui/workspace/Source_Insight/linux-2.6.27.39/cscope.out /home/luzhonghui/workspace/Source_Insight/linux-2.6.27.39/
"设置行号
set nu
set helplang=cn
set encoding=utf-8
"设置语法高亮
syntax enable
syntax on
"设置配色方案
colorscheme desert
"设置TagList
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
"通过WinManager插件来将TagList窗口和netrw窗口整合起来
let g:winManagerWindowLayout='FileExplorer|TagList'
nmap wm :WMToggle<cr>
"设定是否使用 quickfix 窗口来显示 cscope 结果
:set cscopequickfix=s-,c-,d-,i-,t-,e-
"设置cscope的快捷键
nmap <C-_>s :cs find s <C-R>=expand("<cword>")<CR><CR>
nmap <C-_>g :cs find g <C-R>=expand("<cword>")<CR><CR>
nmap <C-_>c :cs find c <C-R>=expand("<cword>")<CR><CR>
nmap <C-_>t :cs find t <C-R>=expand("<cword>")<CR><CR>
nmap <C-_>e :cs find e <C-R>=expand("<cword>")<CR><CR>
nmap <C-_>f :cs find f <C-R>=expand("<cfile>")<CR><CR>
nmap <C-_>i :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
nmap <C-_>d :cs find d <C-R>=expand("<cword>")<CR><CR>
"设置QuickFix错误定位快捷键
nmap <F6> :cn<cr>
nmap <F7> :cp<cr>
"设置MiniBufExplorer
"<C-Tab> 向前循环切换到每个buffer上,并在但前窗口打开
"<C-S-Tab> 向后循环切换到每个buffer上,并在但前窗口打开
let g:miniBufExplMapCTabSwitchBufs = 1
"用<C-箭头键>切换到上下左右窗口中去
let g:miniBufExplMapWindowNavArrows = 1
"按F12时在一个新的buffer中打开c/h文件
nnoremap <silent> <F12> :A<CR>
"设置F3为grep快捷键
nnoremap <silent> <F3> :Grep<CR>
"打开文件类型检测, 加了这句才可以用智能补全
filetype plugin indent on
"关掉智能补全时的预览窗口
set completeopt=longest,menu
"经常在这个工程中编程
set tags=/home/luzhonghui/workspace/Source_Insight/linux-2.6.27.39/tags
"经常使用cscope
cs add /home/luzhonghui/workspace/Source_Insight/linux-2.6.27.39/cscope.out /home/luzhonghui/workspace/Source_Insight/linux-2.6.27.39/
"设置行号
set nu
4万+

被折叠的 条评论
为什么被折叠?



