Command window of VIM)

Source: Internet
Author: User

Vim is a tool that can't be used without getting familiar with it. I have been using it for a period of time. I have been forced to go from the beginning to the end, and I have been happy for a long journey. After a while, the familiar functions will change from remembering the brain to remembering the fingers. In this way, we can free up space to learn more functions, which is also one of the pleasure of using vim.

Before I used q to exit, if I accidentally knocked it back, it would become a small window. I don't know how to use it. At that time, I felt very annoying. I have no time to look at it for a few days, the original Command window is not only not annoying, but also very useful.

You can see that it displays the history of all saved commands. Move the selected command up and down in this window and press enter to execute the command again. This is really convenient for repeated complex searches/replacements.

The command window contains three key combinations:

Q: As shown in, open the command window.

Q/open the search Command window. The search command is stored separately from other commands.

CTRL + F switch to the Command window in command mode

In fact, if you already have two key combinations in command mode, you can read them in command history like the up/down arrows in bash.

CTRL + P flip to the previous command, which is equivalent to the upper arrow of Bash

CTRL + N flip to the next command, which is equivalent to the down arrow of Bash

If you have used Vim to automatically complete the process, you will find that the process is the same as the automatic process.

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.