在用的vimrc

0 views
Skip to first unread message

Leon Zhang

unread,
Feb 15, 2009, 2:30:33 AM2/15/09
to GoogleGroup日记, bb...@live.cn, bb...@yahoo.cn, dd...@live.cn, dd...@yahoo.cn, rr...@yahoo.cn, rr...@ymail.com, 51.m livecn, allback Yahoo, Rui, rui zenbe, day-up...@spaces.live.com, rui.us...@blogger.com, r01ustc.upup, r01ustc...@blogger.com, r01ust...@blogger.com, rleon...@spaces.live.com, rui21...@blogger.com, GoogleGroups 杂七杂八, hktk posterous, scribblelive.天天向上, 海阔天空Blog

" Vim5 and later versions support syntax highlighting. Uncommenting the next
" line enables syntax highlighting by default.
syntax on

" If using a dark background within the editing area and syntax highlighting
" turn on this option as well
"set background=dark

" Uncomment the following to have Vim jump to the last position when
" reopening a file
if has("autocmd")
  au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
    \| exe "normal g'\"" | endif
endif

" Uncomment the following to have Vim load indentation rules according to the
" detected filetype. Per default Debian Vim only load filetype specific
" plugins.
if has("autocmd")
  filetype indent on
endif

" The following are commented out as they cause vim to behave a lot
" differently from regular Vi. They are highly recommended though.
set showcmd        " Show (partial) command in status line.
set showmatch        " Show matching brackets.
"set ignorecase        " Do case insensitive matching
set smartcase        " Do smart case matching
set incsearch        " Incremental search
set autowrite        " Automatically save before commands like :next and :make
"set hidden             " Hide buffers when they are abandoned
"set mouse=a        " Enable mouse usage (all modes) in terminals

"filetype plugin indent on
set modeline        " make /* vim:ft=c */ work
set fileencodings=utf-8,gbk,gb2312


" Source a global configuration file if available
" XXX Deprecated, please move your changes here in /etc/vim/vimrc
if filereadable("/etc/vim/vimrc.local")
  source /etc/vim/vimrc.local
endif

Reply all
Reply to author
Forward
0 new messages