文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>vim install and config

vim install and config

时间:2007-07-05  来源:ice.wu

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
 
相关阅读 更多 +
排行榜 更多 +
一剑灭天

一剑灭天

角色扮演 下载
戮仙战纪

戮仙战纪

角色扮演 下载
头号海贼王手机版

头号海贼王手机版

棋牌卡牌 下载