Install vim and its plug-ins

Source: Internet
Author: User
Vim and its plug-in Installation-general Linux technology-Linux programming and kernel information. The following is a detailed description. Vim is known as a powerful tool for editing unix-like systems, after emac. So it is worth studying.

First, let's talk about how to install vim. We recommend that you install vim7.0 or above, because I cannot find the corresponding vim6.0 package when installing the plug-in later.

It is easy to install, download the source code package (vim-7.2.tar.bz2)

Unzip: tar xjvf vim-7.2.tar.bz2 compile make install, its configuration file is ~ /. Vimrc. I only changed the default tab key.

"Set tab to 4 string
Set ts = 4
Set sw = 4
Set expandtab
Set ai

Copy the secret to/usr/local/share/vim/vim72/plugin/and/usr/local/share/vim/vim72/doc respectively.

(2) install taglist. Similar to NERDTree installation, it is no longer cumbersome and needs to be installed in ~ /. Configure in vimrc

Let Tlist_Ctags_Cmd = '/usr/local/bin/ctags'
Let Tlist_Use_Right_Window = 1
Let Tlist_File_Fold_Auto_Close = 1

For better use, we recommend that you install the ctagpackage (ctags-5.7.tar.gz). After the installation is complete, the ctags-R cannot be used. The/usr/bin/ctags is the built-in ctags of freebsd, the ctag package we installed is actually under '/usr/local/bin/ctags.

Screen tool Installation

Screenable is a tool that supports multiple screens. Download The screenpackage (screen-4.0.3.tar.gz), decompress the package, and find that there is no screen program under/usr/bin/, but there is a screen in the decompression path, you need to manually copy the screen to/usr/bin/screen. During installation, the system will prompt you to manually copy/path to tar/etc/screenrc to/etc/screenrc, then set. screenrc.

You can use screen by adding the following configuration.

# Add by lizl
Caption always "% {= wk }%{= KY} [% n] % t @ % H % {-}%=%{= KR} % l % {-} | % {= KG} % Y-% m-% d % {-}"
Hardstatus alwayslastline "%-Lw % {= Bw} % n % f % t % {-} % + Lw % = | % 0c: % s"

As for the installation of other plug-ins, we will introduce the time needed later.
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.