您的位置:首页 > 其它

my vimrc

2015-11-16 20:55 375 查看
execute pathogen#infect()

filetype on

:set tags=/home/lchen/workspace/kvm/ubuntu-kernel/tags

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>

nmap <F5> :tabnew<CR>

nmap <F6> :TlistOpen<CR>

nmap <F7> :TrinityToggleAll<CR>

nmap <F8> :TrinityToggleTagList<CR>

nmap <F9> :NERDTreeToggle<CR>

nmap <F10> :TrinityToggleSourceExplorer<CR>

" Open and close the taglist.vim separately

" Open and close the NERD_tree.vim separately

nmap <C-p> :tabprevious<CR>

nmap <C-n> :tabnext<CR>

function! LoadCscope()

let db = findfile("cscope.out", ".;")

if (!empty(db))

let path = strpart(db, 0, match(db, "/cscope.out$"))

set nocscopeverbose " suppress 'duplicate connection' error

exe "cs add " . db . " " . path

set cscopeverbose

endif

endfunction

au BufEnter /* call LoadCscope()

let g:NERDTreeDirArrows = 1

let g:NERDTreeDirArrowExpandable = '▸'

let g:NERDTreeDirArrowCollapsible = '▾'
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: