Friday, January 04, 2008

vimrc example for windows Gvim

"vi configure
set nocompatible " We're running Vim, not Vi!
syntax on " Enable syntax highlighting
filetype plugin indent on " Enable filetype-specific indenting and plugins

au GUIEnter * simalt ~x "maximum the initial window

" Load matchit (% to bounce from do to end, etc.)
runtime! macros/matchit.vim

augroup myfiletypes
" Clear old autocmds in group
" autoindent with two spaces, always expand tabs
autocmd FileType ruby,eruby,yaml set ai sw=2 sts=2 et
augroup END

set fileencodings=gb2312,ucs-bom,utf-8,chinese
colorscheme koehler

No comments :