Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Fast input skills of Vim

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

1. Press * under a character or word to display the matching character, and move the cursor over the first matching character

Set showmatch turns on the matching character function

2. Automatic completion. In insert mode, enter the first few characters, and then press ctrl-p to automatically find all matching characters for you to choose. If there are multiple choices, press ctrl-n to select. Vim will try various ways to complete a word. By default, it will look for the following places:

1)。 Current file

2)。 Other open window files

3)。 Other load buffer files, including hidden buffers

4)。 There are no loaded files

5) .tag fil

6)。 The header file referenced by all include,require statements in the current file

3. To complete special document elements, you need to press ctrl-x before, and then press the following command

Ctrl-f file name, / us will look for / usr directory

Ctrl-L entire line of content

Ctrl-d macro definition

Ctrl-i the current file or a file that is include by the current file

Ctrl-k comes from the word of a dictionary file

Ctrl-t is from a word of thesaurus.

Ctrl-j tags

Command line for ctrl-v Vim

After typing these commands, you can choose to find through CTRL-n down and CTRL-p up.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report