我的vim配置文件.vimrc(一)(最后一行的配置会方便很多)
2012-12-21 13:38
609 查看
haoyue@ubuntu:~$ vi .vimrc
把下面这个文件放在 .vimrc文件里就OK了
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 plugin indent on
set backspace=indent,eol,start
set foldmethod=indent
set foldlevel=9999
"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;/
ab .m #include <stdio.h><cr>#include<stdlib.h><cr>#include <pthread.h><cr>#include <unistd.h><cr><cr>int main(int argc, char *argv[])<cr>{<cr>return 0;<cr>}
把下面这个文件放在 .vimrc文件里就OK了
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 plugin indent on
set backspace=indent,eol,start
set foldmethod=indent
set foldlevel=9999
"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;/
ab .m #include <stdio.h><cr>#include<stdlib.h><cr>#include <pthread.h><cr>#include <unistd.h><cr><cr>int main(int argc, char *argv[])<cr>{<cr>return 0;<cr>}
相关文章推荐
- 改写vim配置文件vimrc来实现显示行号,语法高亮,自动缩进功能
- vim配置文件 .vimrc 。按照那篇将vim打造成IDE来的,成功加入各项功能,另外改善了书签不能保存的情况
- VIM学习笔记 配置文件(vimrc)
- vim编辑器配置文件 .vimrc
- Vim的行号、语法显示等设置,即.vimrc文件的配置
- Vim配置文件--vimrc 03.01版
- vim配置技巧——在vim中使用autocmd命令在保存文件时自动插入最后修改日期和时间
- 修改home目录下的.vimrc文件,vim配置php高亮显示
- Vim的行号、语法显示等设置(.vimrc文件的配置)以及乱码解决
- VIM学习笔记 配置文件(vimrc)
- VIM 个性化配置文件.vimrc
- VIM配置文件 .vimrc
- vim配置文件 .vimrc
- vim配置显示行号和语法高亮 即.vimrc文件的配置
- vim 配置文件.vimrc,高亮+自动缩进+行号+折叠+优化
- VIM配置文件vimrc
- Vim学习笔记5---vimrc文件的配置
- 我的VIM配置文件.vimrc
- Ubuntu下改写vim配置文件vimrc来实现显示行号,语法高亮,自动缩进功能
- 我的vim的配置文件.vimrc的内容(适用于vim7.2)