ubuntu11.10我的vim设置

新安装ubuntu11.10后,运行 sudo apt-get install vim

然后配置vim的,使其适合自己的编程风格!

set runtimepath+=~/vimfiles
"set nowrap
set nocompatible
set showcmd
set modelines=5
au GUIEnter * simalt ~x
set guioptions+=t
set guioptions-=T
set so=4
set number
set tabstop=4
set softtabstop=4
"colorscheme ps_color
set nowritebackup
set autoindent
filetype on
filetype plugin on
filetype indent on
filetype plugin indent on
set completeopt=longest,menu
set backspace=indent,eol,start
set foldmethod=syntax
set foldlevel=100
"set list
set listchars=tab:>-,trail:.,extends:>
set suffixes+=.pyc,.pyo
set shiftwidth=4
set showmatch
set ignorecase smartcase
set incsearch
"set cin
set cino=:0,g0,u0,(0,W4
set fileformat=unix
set ruler
"set visualbell
set iskeyword+=.
set laststatus=2
set fo-=at
syntax on


colorscheme desert


"========================================================
" Highlight All Function
"========================================================
syn match   cFunction "\<[a-zA-Z_][a-zA-Z_0-9]*\>[^()]*)("me=e-2
syn match   cFunction "\<[a-zA-Z_][a-zA-Z_0-9]*\>\s*("me=e-1
hi cFunction        gui=NONE guifg=#B5A1FF


"========================================================
" Highlight All Math Operator
 "========================================================
 " C math operators
 syn match       cMathOperator     display "[-+\*/%=]"
 " C pointer operators
 syn match       cPointerOperator  display "->\|\."
 " C logical   operators - boolean results
 syn match       cLogicalOperator  display "[!<>]=\="
 syn match       cLogicalOperator  display "=="
 " C bit operators
 syn match       cBinaryOperator   display "\(&\||\|\^\|<<\|>>\)=\="
 syn match       cBinaryOperator   display "\~"
 syn match       cBinaryOperatorError display "\~="
 " More C logical operators - highlight in preference to binary
 syn match       cLogicalOperator  display "&&\|||"
 syn match       cLogicalOperatorError display "\(&&\|||\)="


 " Math Operator
 hi cMathOperator            guifg=#3EFFE2
 hi cPointerOperator         guifg=#3EFFE2
 hi cLogicalOperator         guifg=#3EFFE2
 hi cBinaryOperator          guifg=#3EFFE2
 hi cBinaryOperatorError     guifg=#3EFFE2
 hi cLogicalOperator         guifg=#3EFFE2
 hi cLogicalOperatorError    guifg=#3EFFE2


 let Tlist_Show_One_File=1
 let Tlist_Exit_OnlyWindow=1


 let g:winManagerWindowLayout='FileExplorer|TagList'
 nmap wm :WMToggle<cr>
 set cscopequickfix=s-,c-,d-,i-,t-,e-


 filetype plugin indent on
 set completeopt=longest,menu
 let g:SuperTabRetainCompletionType=2
 let g:SuperTabDefaultCompletionType="<C-X><C-O>"
 "let g:miniBufExplMapCTabSwitchBufs = 1
 "let g:miniBufExplMapWindowNavVim = 1
 "let g:miniBufExplMapWindowNavArrows = 1
 nnoremap <silent> <F3> :Grep<CR>
set tags=tags;/
source $VIMRUNTIME/ftplugin/man.vim
"set foldmethod=syntax
"set foldlevel=100
ab .m #include <stdio.h><cr>#include <stdlib.h><cr>#include "IO.h"<cr><cr>int main(int argc, char *argv[])<cr>{<cr>return 0;<cr>}<ESC>kO

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值