linux .vimrc设置

set number
syntax enable
set cindent
set autoindent
set incsearch
set formatoptions=or
set comments=1://,s1:/*,mb:*,ex:*/
set showmatch
set background=dark
set matchtime=1
set backspace=indent,eol,start
set ic wrap
set expandtab
set tags=../../tags,../tags,./tags,../tftp/tags
filetype plugin on




let Tlist_Exit_OnlyWindow=1
let Tlist_Show_One_File=1
let g:winManagerWindowLayout="FileExplorer|TagList"
let g:miniBufExplMapWindowNavVim= 1
let g:pydiction_location = '/root/.vim/after/plugin/complete-dict'


"map <F12>   :qall!<CR>
map <F11>   :Tlist<CR>
map <F10>   :qall!<CR>
map <F8>    :Matrix<CR>
map <F9>    <C-W><C-V><C-W>l:n<CR><C-W>h
map <C-W><C-T> :WMToggle<CR>
map <C-W><C-F> :FirstExplorerWindow<CR>
map <C-W><C-B> :BottomExplorerWindow<CR>
"color darkblue 
"color murphy
"color evening
"color zellner
se guioptions-=T guioptions-=m guifont=Consolas:h12:cANS
set ai si foldenable hls ic 
syntax on
set ts=4
set shiftwidth=4
set autoindent
set cindent
set et
"set mouse=a
"for omnicppcomplet:
set nocp
autocmd InsertLeave * if pumvisible() == 0|pclose|endif
set completeopt=menu,menuone


let OmniCpp_MayCompleteDot = 1 " autocomplete with .
let OmniCpp_MayCompleteArrow = 1 " autocomplete with ->
let OmniCpp_MayCompleteScope = 1 " autocomplete with ::
let OmniCpp_SelectFirstItem = 2 " select first item (but don't insert)
let OmniCpp_NamespaceSearch = 2 " search namespaces in this and included files
let OmniCpp_ShowPrototypeInAbbr = 1 " show function prototype (i.e. parameters) in popup window


" -- ctags --
"  " map <ctrl>+F12 to generate ctags for current folder:
map <F12> :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .<CR><CR>
"  " add current directory's generated tags file to available tags
set tags+=./tags
set foldopen=all
set foldclose=all
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值