简体   繁体   中英

Display Vim intermediate commands

In vimtutor Lesson 2.1: DELETION COMMANDS, there is a note after the #4 item:

The letter d will appear on the last line of the screen as you type it. Vim is waiting for you to type w . If you see another character than d you typed something wrong; press <ESC> and start over.

However, I do not see intermediate commands in the last line as the note says. How do I enable this? What option should I set in my .vimrc ?

You can use

:set showcmd

That will display the commands as you type it in Vim. The same can also be put into .vimrc

This 'last line' is the line at bottom of screen. If you don't see this you may have trouble with (Linux?) terminal setting.

If you use terminal on Linux system, try to invoke command export TERM=Linux before running Vim.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM