简体   繁体   English

显示Vim中间命令

[英]Display Vim intermediate commands

In vimtutor Lesson 2.1: DELETION COMMANDS, there is a note after the #4 item: vimtutor Lesson 2.1:DELETION COMMANDS中,#4项后面有一个注释:

The letter d will appear on the last line of the screen as you type it. 键入时,字母d将出现在屏幕的最后一行。 Vim is waiting for you to type w . Vim正在等你输入w If you see another character than d you typed something wrong; 如果你看到另一个性格比d你输入一些错误; press <ESC> and start over. <ESC>键重新开始。

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 ? 我应该在.vimrc设置什么选项?

You can use 您可以使用

:set showcmd

That will display the commands as you type it in Vim. 这将在您在Vim中键入时显示命令。 The same can also be put into .vimrc 同样也可以放入.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. 如果你没有看到这个,你可能会遇到(Linux?)终端设置问题。

If you use terminal on Linux system, try to invoke command export TERM=Linux before running Vim. 如果在Linux系统上使用终端,请在运行Vim之前尝试调用命令export TERM=Linux

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 rust (vim) 中运行命令 - Running commands in rust (vim) 如何在Vim中使用预写的命令 - How to use prewritten commands in Vim Vim有某种语法可以在命令模式下组合命令吗? - Does Vim have a certain syntax to combine commands on command mode? 在Vim上使用<Leader>键自定义命令有什么好处? - What are the advantages of having customized commands with the <Leader> key on Vim? Vim 中的 remap、noremap、nnoremap 和 vnoremap 映射命令有什么区别? - What is the difference between the remap, noremap, nnoremap and vnoremap mapping commands in Vim? Vim - 使用搜索寄存器查找(&#39;f&#39;,&#39;t&#39;,&#39;F&#39;,&#39;T&#39;)命令 - Vim - Use search register for find ( 'f', 't', 'F', 'T' ) commands Vim:如何获取以键入的字母开头的所有命令的列表? - Vim: How to get a list of all commands that start with typed letter? 如何防止vim bash命令使用全屏? - How can I prevent vim bash commands from using the full screen? 我想打开vim并查看前一个会话中的“:”命令。 那可能吗? - I want to open vim and see my “:” commands from a previous session. Is that possible? 除了F1,F2,F3(Ctrl + Fs等)以外,哪些是在Vim上创建自定义命令的好(可用)键? - Besides F1, F2, F3, (Ctrl + Fs and so on), which are good (available) keys to create custom commands on Vim?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM