vim设置

如题,[SAVE]保存一下自己的vim设置,免得以后重新设置~!

""""""""""""""""""""""" VI Setting  """"""""""""""""""""""
"display line nu
set nu
"syntax highlight
"syntax on
"indention based on file type
filetype indent on
set autoindent
set cindent
"ignore the camel when search
set ic
"enable 256 colors
"set t_Co=256
"highlight the text when search
set hls
"Wrap text instead of being on one line
set lbr
"reset default color scheme to desert
"colorscheme desert
colorscheme 256-grayvim
"set tab distance
set tabstop=4
set softtabstop=4
"set auto indent width
set shiftwidth=4

"set nocompatible
set nocompatible

"fonts setting
set enc=utf-8
set guifont=Courier_New:h11:cANSI

"""""""""""""""""""" end VI Setting """""""""""""""""""""

"""""""""""""""""""" Taglist Setting """"""""""""""""""""
let Tlist_Ctags_Cmd='/usr/bin/ctags'
"let Tlist_Use_Right_Window=1
let Tlist_Sort_Type="name"
let Tlist_Exit_OnlyWindow=1
let Tlist_File_Fold_Auto_Close=1
let Tlist_Auto_Open=0
let Tlist_Show_One_File=1
"Map TagList"
map <F3> :Tlist<CR>
"""""""""""""""""" end Taglist Setting """"""""""""""""""

"""""""""""""""""" NERD_Tree Setting """"""""""""""""""""
let NERDChristmasTree=1
let NERDTreeShowFiles=1
let NERDTreeShowLineNumbers=1
let NERDTreeWinPos='left'
let NERDTreeWinSize=30
"Map NERD Tree "
map <F2> :NERDTreeToggle<CR> 
""""""""""""""""" end NERD_Tree Setting """""""""""""""""

""""""""""""""""" BufExplorer Setting """""""""""""""""""
let g:bufExplorerDefaultHelp=0 "Do not show default help
let g:bufExplorerShowRelativePath=1 
let g:bufExplorerSortBy='mru'
let g:bufExplorerSplitRight=0
let g:bufExplorerSplitVertical=1
let g:bufExplorerSplitVertSize=30
let g:bufExplorerUseCurrentWindow=1
autocmd BufWinEnter \[Buf\ List\] setl nonumber
""""""""""""""" end BufExplorer Setting """""""""""""""""

"""""""""""""""""" winmanager Setting """""""""""""""""""
let g:winManagerWindowLayout="BufExplorer,FileExplorer|TagList"
let g:winManagerWidth=30
let g:defaultExplorer=0
nmap <C-W><C-F> :FirstExplorerWindow<cr>
nmap <C-W><C-B> :BottomExplorerWindow<cr>
nmap wm :WMToggle<cr>
"""""""""""""""" end winmanager Setting """""""""""""""""

"""""""""""""""""" lookupfile Setting """""""""""""""""""
let g:LookupFile_MinPatLength=2
let g:LookupFile_PreserveLastPattern=0
let g:LookupFile_PreservePatternHistory=1
let g:LookupFile_AlwaysAcceptFirst=1
let g:LookupFile_AllowNewFiles=0
if filereadable("./lookup_tags")
let g:LookupFile_TagExpr='"./lookup_tags"'
endif	
nmap luk :LUTags<cr>
nmap lub :LUBufs<cr>
nmap luw :LUWalk<cr>
"""""""""""""""" end lookupfile Setting  """""""""""""""""

""""""""""""""""" Cscope setting """""""""""""""""""""""""
if has("cscope")
	set csprg=/usr/bin/cscope
	set csto=1
	set cst
	set nocsverb
	"add any database in current directory
	if filereadable("cscope.out")
		cs add cscope.out
	endif
	set csverb
endif	

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>
"""""""""""""""""end cscope setting """""""""""""""""""""
"""""""""""""""""""  open file indent """""""""""""""""""
filetype plugin indent on
""""""""""""""""""superTab setting """"""""""""""""""""""
let g:SuperTabRetainCompletionType=2
let g:SuperTabDefaultCompletionType="<C-X><C-O>"
""""""""""""""" end superTab setting """""""""""""""""""""
""""""""""""""""""""""""" fold enable """"""""""""""""""""
"autocmd FileType c,cpp setl fdm=syntax | setl fen



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值