Chinaunix首页 | 论坛 | 博客
  • 博客访问: 758899
  • 博文数量: 201
  • 博客积分: 10000
  • 博客等级: 上将
  • 技术积分: 2391
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-06 22:16
文章分类

全部博文(201)

文章存档

2011年(1)

2010年(2)

2009年(57)

2008年(141)

我的朋友

分类: LINUX

2009-10-13 13:40:50

刚刚安装了Debian,却发现其自带的VI存在问题:
1)不支持语法高亮提示
2)不支持Backspace键的删除功能

原来Debian中自带的VI是VIM-TINY,程序本身就是不支持语法高亮和Backspace删除功能。

可以使用以下办法解决:
1)重新安装其它版本的VI
apt-get install vim vim-runtime ctags
2)配置~/.vimrc
添加syntax on

VI常用的配置选项
syntax on
set number
set showcmd
set incsearch
set expandtab
set showcmd
set history=400
set autoread
set ffs=unix,mac,dos
set ignorecase
set hlsearch
set shiftwidth=2
set wrap
set ai
set si
set cindent
set termencoding=unix
set tabstop=2
set nocompatible
set showmatch
set fileencodings=utf-8,gb2312
set ttyfast
set imcmdline
set previewwindow
set showfulltag
阅读(542) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~