Vim In Debian

Source: Internet
Author: User

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

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.