|
发表于 2004-5-24 23:12:09
|
显示全部楼层
FreeBSD的默认设置是不太好,
以下是我的~/.vimrc内容
set nocompatible
set backspace=indent,eol,start
set autoindent
set textwidth=0
set nobackup
set viminfo='20,\"50
set history=50
set ruler
set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc
vnoremap p <Esc>:let current_reg = @"<CR>gvdi<C-R>=current_reg<CR><Esc>
if has("autocmd")
filetype plugin on
endif
augroup filetype
au BufRead reportbug.* set ft=mail
au BufRead reportbug-* set ft=mail
augroup END
set runtimepath=~/.vim,/etc/vim,/usr/share/vim/vimfiles,/usr/share/vim/addons,/usr/local/share/vim/vim62,/usr/share/vim/vimfiles,/usr/share/vim/addons/after,~/.vim/after
syntax on
set expandtab
set tabstop=4
set shiftwidth=4
"set ignorecase
"set mouse=a |
|