窗口顶部的vim命令 [英] vim command on top of window

查看:140
本文介绍了窗口顶部的vim命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我经常在python和C ++中编码,vim是我的首选编辑器。我有一堆插件/片段让事情变得容易多了。我缺少的一个功能是能够在顶部移动vim的命令窗口。所以,如果我键入:e,我希望此命令位于窗口之上。我该怎么做?

I code in python and C++ regularly and vim is my editor of choice. I have a bunch of plugins/snippets that make things a lot easier. One feature I lack is the ability to move the command window of vim on top. So, if I type ":e ", I want this command to be on top of the window. How do I do that?

推荐答案

命令行总是在底部;这不能改变。我想原因是一些Ex命令(如:ls )打印多行输出。您可能希望此输出位于/接近命令本身。顶部的命令行意味着Vim的正常窗口布局将向下滚动以为输出腾出空间。这是不自然的,不像终端工作。 (vi / Vim首先是最终申请!)

The command-line is always at the bottom; this cannot be changed. I guess the reason is that some Ex commands (like :ls) print multiple lines of output. You would expect this output to be next to / close to the command itself. A command-line on top would mean that the normal window layout of Vim would "scroll down" to make space for the output. This is unnatural and not like terminals work. (vi / Vim is first and foremost a terminal application!)

所以,习惯它!

这篇关于窗口顶部的vim命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆