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

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

可以使用以下办法解决:
1)重新安装其它版本的vi
apt-get install vim vim-runtime exuberant-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

相关文章:

  • 2021-09-20
  • 2022-12-23
  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-11
  • 2021-08-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
相关资源
相似解决方案