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 = '▾'
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 = '▾'
相关文章推荐
- java笔记_正则表达式
- webservice编程中的RPCServiceClient类涉及的jar包
- Http协议理解
- 排序算法总结
- 文章标题
- swift学习笔记->类
- Xcode模版生成文件头部注释
- 对iOS的主要框架的介绍
- [初学web]phalcon框架下通过ajax更改select表单的选项
- [leetcode]Consecutive Numbers
- leetcode-Evaluate Reverse Polish Notation
- Region Covariance: A Fast Descriptor for Detection and Classification算法总结
- HDU 3400 (三分)
- gmock为什么只能支持虚函数(其实也不准确)
- light oj 1012 Guilty Prince(dfs )
- iOS宏定义
- 【南大软院大神养成计划:第一天】种下21天,收获不一样的自己——前端养成启程!
- lightoj1210Efficient Traffic System
- iOS图文混排
- LayoutInflater