[英]Do not Redraw command line buffer in Vim after :ls
One of NeoVim build in feature is: when you type :ls
it shows the Buffer list with open files in it, and then when you enter another command to switch to specific buffer like :b<number>
that command line buffer do not redraw and you could see all opened buffers: NeoVim 内置功能之一是:当您键入
:ls
它会显示其中包含打开文件的缓冲区列表,然后当您输入另一个命令切换到特定缓冲区时,例如:b<number>
命令行缓冲区不会重绘和你可以看到所有打开的缓冲区:
So the question is it possible to activate such a function in Vim, and if so, how?所以问题是是否可以在 Vim 中激活这样的功能,如果可以,如何激活?
You can make command Ls :ls<CR>:b<Space>
, and set a key mapping to Ls
.您可以制作
command Ls :ls<CR>:b<Space>
,并将键映射设置为Ls
。
See this article for more setups of the like.有关类似设置的更多信息,请参阅本文。
这个问题的根源是自定义状态行插件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.