This is a simple guide of vim install and config:
1)download vim and install it (configure.make.make install)
2)vim config,this will be done by the following steps:
a) vi /etc/profile.d/vim.sh
if [ -n "$BASH_VERSION" -o -n "$KSH_VERSION" -o -n "$ZSH_VERSION" ]; then
# for bash, pdksh and zsh, only if no alias is already set
alias vi >/dev/null 2>&1 || alias vi=vim
fi
b) vi /etc/profile add this line:
alias vi >/dev/null 2>&1 || alias vi=/usr/local/vim/bin/vim (vim install path)
source /etc/profile
c) vi ~.vimrc
set autoindent
set tabstop=4
set shiftwidth=4
set ruler
syntax on
set backgroud=dark
colorscheme evening
remark:
you could set backspace as delete key by vi /etc/profile add this line:
stty erase "^?"
source /etc/profile
阅读(808) | 评论(0) | 转发(0) |