我的.gvimrc
"Default VIM Settings of Jerry Max.
"This .vimrc File Contains Syntax Settings.
"Need NOT Set 'colorscheme xxx.vim'.
"Can be Used for both Windows and Linux!
"Set Options
set title
set ruler
set autoindent
set smartindent
set smarttab
set cindent
set hlsearch
set number
set showcmd
set showmode
set showmatch
set nobackup
set cursorline
set modifiable
set tabstop=4
set backspace=2
set background=dark
set shiftwidth=4
set mouse=a
set splitbelow
set textwidth=99
set showtabline=2
set laststatus=2
set cmdheight=2
set guioptions-=T
set guioptions-=m
set statusline=\ %F\ \ %m\ \ %y\ \ row:%l\ \ col:%v\ \ last:%L\ \ %P\ \ asc:%Bh\ \ fmt:%{&ff}
if has("win32")
set guifont=Consolas:h13
set lines=28 columns=128
winpos 100 20
language english
else
set lines=32 columns=128
set guifont=ubuntu\ mono\ 13
endif
"Set Highlight Colors
syntax clear
syntax reset
syntax on
hi Normal guifg=cyan guibg=#000911 gui=none
hi Include guifg=#ee000B guibg=bg gui=none
hi PreProc guifg=#ee000B guibg=bg gui=none
hi Macro guifg=gray guibg=bg gui=none
hi Constant guifg=green guibg=bg gui=none
hi Number guifg=green guibg=bg gui=none
hi Special guifg=green guibg=bg gui=none
hi Bracket guifg=fg guibg=bg gui=none
hi Type guifg=fg guibg=bg gui=none
hi Statement guifg=yellow guibg=bg gui=none
hi cFunctions guifg=darkcyan guibg=bg gui=none
hi Function guifg=#11AADD guibg=bg gui=none
hi Identifier guifg=fg guibg=bg gui=none
hi SpecialKey guifg=fg guibg=bg gui=none
hi cOperators guifg=white guibg=bg gui=none
hi Comment guifg=darkgray guibg=bg gui=none
hi LineNr guifg=darkgray guibg=bg gui=none
hi Title guifg=fg guibg=bg gui=none
hi StatusLine guifg=black guibg=cyan gui=none
hi CursorLine guifg=white guibg=#002030 gui=none
hi PmenuSel guifg=white guibg=darkred gui=none
hi Pmenu guifg=white guibg=black gui=none
hi Search guifg=white guibg=darkred gui=none
hi NonText guifg=gray guibg=bg gui=none
hi Directory guifg=fg guibg=bg gui=none
hi Visual guifg=white guibg=darkred gui=none
hi ModeMsg guifg=white guibg=darkred gui=none
hi ErrorMsg guifg=white guibg=darkred gui=none
hi MoreMsg guifg=white guibg=darkred gui=none
hi Question guifg=white guibg=darkred gui=none
"Set Netrw and Plugins
filetype plugin on
let g:netrw_winsize=20
let g:netrw_liststyle=2
nmap <silent> <F2> : nohl<cr>
nmap <silent> <F3> : Te<cr>
nmap <silent> <F4> : leftabove Vexplore<cr>
imap <C-K> <C-X><C-I>
imap <C-L> <C-X><C-L>
imap <M-h> <Left>
imap <M-j> <Down>
imap <M-k> <Up>
imap <M-l> <Right>
"imap <Tab> <Tab>
"Set Ctags and Others
set tags=./tags;/home/max/tags;/usr/include/tags;
set autochdir