vim设置
好记性不如烂笔头。
?
1)首先找到系统自带的vim设置的demo。
find . -name?vimrc_example.vim
?
比如是:
/usr/share/vim/vim73/vimrc_example.vim
?
2)把它copy到当前用户的根目录下:
cp /usr/share/vim/vim73/vimrc_example.vim /home/wenfeng/.vimrc
?
3)然后根据自己的要求修改.vimrc文件
具体设置方法,baidu一下即可。
我的设置如下:
? ? set nocompatible
?
set number
?
set background=dark
?
syntax on
?
set history=50
?
set autoindent
?
set smartindent
?
set tabstop=4
?
set shiftwidth=4
?
set showmatch
?
set incsearch