如何只用一个按键跳到最右边的窗口?(How to jump to the rightmost window with just one keystroke?)

编程入门 行业动态 更新时间:2024-10-19 06:19:33
如何只用一个按键跳到最右边的窗口?(How to jump to the rightmost window with just one keystroke?)

我发现vim中的窗口管理器非常强大。 我们可以用它来将窗口分割成任何我们想要的。 但是,当窗口数量超过4时,会引起一个问题:跳到最右边的窗口很难。 因为最右边的窗口用于在我的vim中显示taglist。 我不喜欢按CTRL + W两次或更多次跳转到最右边窗口的方式。 有没有更简单的方法来做到这一点?

I found the window manager in vim is quite powerful. We can use it to split the window to whatever we want it to be. But when the numbers of the windows comes to more then 4, it will caused one problem: it's quit hard to jump to the rightmost window. Because the rightmost window is used to display taglist in my vim. I don't like the way that type CTRL+w for twice or more times to jump to the rightmost window. Is there a more easier way to do it?

最满意答案

:nmap <C-\> <C-w>200l

那么你按ctrl- \将让你去到最右边的窗口。

实际上你不需要多次按cw。 如果你有10个窗口打开,现在你在第三个窗口,你只需键入ctrl-w 10 l。 去最右边的窗口。

从帮助:

CTRL-W_L | CTRL-W l转到第N个右侧窗口(停在最后一个窗口)

你只需要给一个N

:nmap <C-\> <C-w>200l

then you press ctrl-\ will let you go to the most right window.

actually you don't need to press c-w many times. if you have 10 windows opened, and now you are in 3rd window, you just type ctrl-w 10 l. to go to the right most window.

from help:

CTRL-W_l| CTRL-W l go to Nth right window (stop at last window)

you just need give a N

更多推荐

本文发布于:2023-08-06 19:04:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1452815.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:跳到   按键   窗口   jump   window

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!