In the past, the vim provided by Debian was Vim. Tiny. syntax highlighting and other functions were not supported. Run the following command to find that Vim is under/usr/bin.
Whereis Vim
The following command shows that both VI and Vim are linked to VIM. Tiny.
Ls-Al/usr/bin/VI *
So you have to install it yourself.
Apt-Get install Vim
You can also install the ctags, VIM-Doc, and vim-scripts packages as needed.
Common VI configuration options
-----------------------
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
Set VB t_vb =
Set cursorline
Set nowrapscan
Set ruler
After Vim is installed, you can use this configuration file:
Http://amix.dk/vim/vimrc.html
The mysys () function is missing in this configuration file. Add one at the beginning of the file:
"Platform
Function! Mysys ()
Return "Linux"
Endfunction
Color Scheme:
Http://www.cs.cmu.edu /~ Maverick/vimcolorschemetest/index-c.html