Chinaunix首页 | 论坛 | 博客
  • 博客访问: 379915
  • 博文数量: 120
  • 博客积分: 5051
  • 博客等级: 大校
  • 技术积分: 1255
  • 用 户 组: 普通用户
  • 注册时间: 2007-07-03 01:25
文章分类

全部博文(120)

文章存档

2011年(2)

2010年(11)

2009年(28)

2008年(26)

2007年(53)

我的朋友

分类: LINUX

2007-07-05 01:58:44

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) |
给主人留下些什么吧!~~