我发现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>200lthen 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
更多推荐
发布评论