English 中文(简体)
我如何按下 Vim 中的“ <C-L> <C-W> <C-W> <C-W-W ”?
原标题:How do I press "<C-L> <C-W>l<C-W>_" in Vim?
  • 时间:2012-05-28 05:26:16
  •  标签:
  • vim

In one of the vim config files I have noticed this keyboard mapping map <C-L> <C-W>l<C-W>_ supposedly for easier moving in tabs and windows. What does that translate to keyboard presses? What is that underscore at the end for?

最佳回答

命令 map< C- L> & lt; C- W> l< C- W> {/code> 地图 < kbd> Ctrl- L 到 Ctrl-W , , Ctrl-W

您只需按下 < kbd> Ctrl- L < / kbd> 即可援引此绑定。 要引用它约束您的东西, 您可以键入 < kbd> Ctrl- W , 然后 < kbdcode> < /code_ / kbd >, 之后是 < kbd> Ctrl- W , 最后是 < kbd/ kbd > (在美国键盘上是 Shift- hyphen) 。 这是两个单独的绑定, 即 < code_ lt; C- W- gt; l/code > 将光标移到窗口右边, 和 < code_ lt; C- W- gt; {/code > 将当前窗口调整到可能的最大垂直大小 。

问题回答

Ctrl w l Ctrl w 键序列为时过长,所以有人在Vim-speak中创建了快捷键( " < code> map ping"): Ctrl L

将光标移动到右边的窗口( ) 并垂直最大化( )。

绘图总是遵循同样的结构:

  1. map (或 imap ,用于 插入 模式映射, nmap ,用于 正常 模式映射等)

  2. 某些空白空格

  3. 您想要的快捷键, 这里

  4. 某些空白空格

  5. 快捷键触发的命令序列

: help window 了解更多关于窗口管理的信息, : help 映射 了解更多关于映射的信息。





相关问题
Autoupdate VIM Plugins?

Is it possible to update vim plugins automatically?

how to unindent in vim without leaving edit mode?

I m writing a lot of python code recently, and i used the tab-to-space mode in vim. I was just wondering how would i unindent in vim without leaving edit mode for example after i finished if...: block....

Scrolling inside Vim in Mac s Terminal

I ve been googling around trying to figure out if it s possible to use my mouse wheel to scroll while inside Vim in Mac s Terminal, with no luck. It seems as if only X11 or iTerm support this. Before ...

Vim - Deleting XML Comments

How do I delete comments in XML? If the opening and the closing comment tags are on the same line, I use :g/^<!--.*-->$/d to delete the comment. How to delete the comments that are spread ...

Limiting a match in vim to certain filetypes?

I have the following in my .vimrc to highlight lines longer than 80 chars: highlight OverLength ctermbg=red ctermfg=white guibg=#592929 match OverLength /\%81v.*/ This works quite well. However, the ...

Profiling Vim startup time

I’ve got a lot of plugins enabled when using Vim – I have collected plugins over the years. I’m a bit fed up with how long Vim takes to start now, so I’d like to profile its startup and see which of ...

热门标签