Vim practical notes

Source: Internet
Author: User

I. Common sense:

TabKeyCommand can be supplemented;

/Etc/vim/vimrcIf you want to configure a specific configuration file for a specific user, create ~ /. Vimrc file, and enter the configuration content;

: Help syntaxTo view the help information:

Ii. vim2.1

2.2 vim

After configuration, you can use commands to add the set content to the vim configuration file/etc/vim/vimrc. Of course, you do not need to add the set content to vimrc ":.

1. You can use the command to set the display line number.": Set number"

2. automatically save files, ": Set autowrite"

3. Make the mouse available, ": Set mouse = ". This command is effective on the visual interface after being typed, But I typed this command in the tty1 console, but it did not change. After searching for the help content through ": help mouse", you can see:

Linux console with gpm", I think this is missing, so try to install it:

Iii. 3.1

1. Basic Search:

2. Exact search:

 

3.2

3.3

3.4

1. Install ctags: Sudo apt-get install exuberant-ctags

3.5 vim

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.