Display Vim intermediate commands

…衆ロ難τιáo~ 提交于 2019-12-19 05:08:28

问题


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?


回答1:


You can use

:set showcmd

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




回答2:


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.



来源:https://stackoverflow.com/questions/7944888/display-vim-intermediate-commands

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!