分类: BSD
2009-01-23 09:49:08
vim默认有X11 GUI支持,运行速度不是很快,尤其是配置较低的机器上,在安装的时候我们可以不要GUI支持的,具体过程如下:
首先,升级ports,
# portsnap fetch update
然后,安装vim,
# cd /usr/ports/editors/vim
# make WITHOUT_X11=yes install clean
配置vim
# cp /usr/local/share/vim/vim72/vimrc_example.vim /usr/local/share/vimrc
$ vi ~/.vimrc
set nocompatible
filetype on
filetype indent on
filetype plugin on
set laststatus=2
syntax on
$ echo "alias vi='vim'" >> ~/.bashrc