Simple configuration of Vim in Linux

Source: Internet
Author: User

This article mainly shares the simple configuration of vim in Linux

★ Location of configuration Files

In the directory/etc, there is a file named VIMRC, which is the public vim configuration file in the system and is open to all users. In each user's home directory, you can create a private configuration file, named: ". VIMRC".

1. switch from root to user.

2. Set syntax highlighting

Syntax on (open with Vim. VIMRC for writing)

3. Display line Numbers

Set Nu (Open with Vim. VIMRC for writing)

4. Set the number of spaces entered is 4

Set shiftwidth=4 (with Vim open. VIMRC for writing)

5. Installing the TagList Plugin

https://sourceforge.net/projects/vim-taglist/files/vim-taglist/

Download the Taglist_xx.zip, put the extracted doc file to ~/.vim/doc, and put the extracted plugin file to ~/.vim/plugin

Then add the ~/.VIMRC in the

Let tlist_show_one_file=1
Let Tlist_exit_onlywindow=1
Let Tlist_use_right_window=1

6. Install the File Browser and window Manager plugin: Winmanager

Http://www.vim.org/scripts/script.php?script_id=95

Unzip the Winmannager.zip, (as with the installation taglist) put the extracted doc file to ~/.vim/doc, the extracted plugin files to ~/.vim/plugin

Then add the ~/.VIMRC in the

Let g:winmamagerwindowlayout= ' fileexplorer| TagList '
Nmap wm:wmtoggle<cr>

7. Installation complete and use of taglist and Winmannager

TagList: Enter Tlist in the bottom row mode

Winmanager: Enter WM in normal mode

Simple configuration of Vim in Linux

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.