我的vim的设置

目前只有一些OmniCpp,cscope,taglist,ctags,winmanager,bufexplorer,minibufexplorer的一些设置

 

 

let &termencoding=&encoding
set fileencodings=utf-8,gbk

 

set nocp

filetype plugin on

 

syntax enable

syntax on

colorscheme desert

 

set tabstop=4

set softtabstop=4

set shiftwidth=4

 

set autoindent 

set cindent

set nu

 

set hlsearch        " hightlight search result

set incsearch       " increase search

 

"intelligent suggest and auto complete

let OmniCpp_GlobalScopeSearch = 1

let OmniCpp_NamespaceSearch = 2

let OmniCpp_DisplayMode = 1

let OmniCpp_ShowScopeInAbbr = 1

let OmniCpp_ShowPrototypeInAbbr = 1

let OmniCpp_ShowAccess = 1

let OmniCpp_DefaultNamespaces = []

let OmniCpp_MayCompleteDot = 1

let OmniCpp_MayCompleteArrow = 1

let OmniCpp_MayCompleteScope = 1

 

"ctags

set tags+=~/.vim/sysctags

set tags+=./tags

 

"taglist

let Tlist_Show_One_File=1

let Tlist_Exit_OnlyWindow=1

 

"winManager

let g:winManagerWindowLayout='FileExplorer|TagList'

 

"minibufexplorer

"don't show minibufexplorer because of conflict with winmanager

"only use the the feature of moving between windows with C+arrow

let g:miniBufExplorerMoreThanOne=1000000

let g:miniBufExplMapWindowNavArrows = 1

 

"quickfix

set cscopequickfix=s-,c-,d-,i-,t-,e-

 

"cscope

cs add ./cscope.out .

 

"hot key

map wm :WMToggle<cr>

map <C-F9> :Tlist<CR>

map <C-F10> :A<CR>

map <C-F11> :!cscope -Rbq

map <C-F12> :!ctags -R  --c++-kinds=+p --fields=+iaS --extra=+q .

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值