Vim ctags:我们可以在不关闭标记列表窗口的情况下在标记列表窗口和源代码窗口之间切换焦点吗?

Vim ctags:我们可以在不关闭标记列表窗口的情况下在标记列表窗口和源代码窗口之间切换焦点吗?,vim,ctags,taglist,Vim,Ctags,Taglist,我在linux上使用带vim的ctags 只要我按下任何标记上的enter键,焦点就会转到源代码窗口,为了重新获得对标记列表窗口的焦点,我必须执行两次:TlistToggle(变量“Tlist\u gainfo focus\u on\u ToggleOpen”设置为1),这基本上会关闭标记列表窗口,并使用获取的焦点再次打开它 我只是好奇我们是否可以在不关闭标记列表窗口的情况下在标记列表窗口和源窗口之间切换焦点 :help window …给出了有关Vim窗口的章节,包括 :help windo

我在linux上使用带vim的ctags

只要我按下任何标记上的enter键,焦点就会转到源代码窗口,为了重新获得对标记列表窗口的焦点,我必须执行两次
:TlistToggle
(变量
“Tlist\u gainfo focus\u on\u ToggleOpen”设置为
1),这基本上会关闭标记列表窗口,并使用获取的焦点再次打开它

我只是好奇我们是否可以在不关闭标记列表窗口的情况下在标记列表窗口和源窗口之间切换焦点

:help window
…给出了有关Vim窗口的章节,包括

:help window-move-cursor
…作为您要查找的子章节:

4. Moving cursor to other windows           *window-move-cursor*

CTRL-W <Down>                   *CTRL-W_<Down>*
CTRL-W CTRL-J                   *CTRL-W_CTRL-J* *CTRL-W_j*
CTRL-W j    Move cursor to Nth window below current one.  Uses the cursor
        position to select between alternatives.

CTRL-W <Up>                 *CTRL-W_<Up>*
CTRL-W CTRL-K                   *CTRL-W_CTRL-K* *CTRL-W_k*
CTRL-W k    Move cursor to Nth window above current one.  Uses the cursor
        position to select between alternatives.

CTRL-W <Left>                   *CTRL-W_<Left>*
CTRL-W CTRL-H                   *CTRL-W_CTRL-H*
CTRL-W <BS>                 *CTRL-W_<BS>* *CTRL-W_h*
CTRL-W h    Move cursor to Nth window left of current one.  Uses the
        cursor position to select between alternatives.

CTRL-W <Right>                  *CTRL-W_<Right>*
CTRL-W CTRL-L                   *CTRL-W_CTRL-L* *CTRL-W_l*
CTRL-W l    Move cursor to Nth window right of current one.  Uses the
        cursor position to select between alternatives.

CTRL-W w                    *CTRL-W_w* *CTRL-W_CTRL-W*
CTRL-W CTRL-W   Without count: move cursor to window below/right of the
        current one.  If there is no window below or right, go to
        top-left window.
        With count: go to Nth window (windows are numbered from
        top-left to bottom-right).  To obtain the window number see
        |bufwinnr()| and |winnr()|.  When N is larger than the number
        of windows go to the last window.

                        *CTRL-W_W*
CTRL-W W    Without count: move cursor to window above/left of current
        one.  If there is no window above or left, go to bottom-right
        window.  With count: go to Nth window, like with CTRL-W w.

CTRL-W t                    *CTRL-W_t* *CTRL-W_CTRL-T*
CTRL-W CTRL-T   Move cursor to top-left window.

CTRL-W b                    *CTRL-W_b* *CTRL-W_CTRL-B*
CTRL-W CTRL-B   Move cursor to bottom-right window.

CTRL-W p                    *CTRL-W_p* *CTRL-W_CTRL-P*
CTRL-W CTRL-P   Go to previous (last accessed) window.

                        *CTRL-W_P* *E441*
CTRL-W P    Go to preview window.  When there is no preview window this is
        an error.
        {not available when compiled without the |+quickfix| feature}

If Visual mode is active and the new window is not for the same buffer, the
Visual mode is ended.  If the window is on the same buffer, the cursor
position is set to keep the same Visual area selected.

                        *:winc* *:wincmd*
These commands can also be executed with ":wincmd":

:[count]winc[md] {arg}
        Like executing CTRL-W [count] {arg}.  Example: >
            :wincmd j
<       Moves to the window below the current one.
        This command is useful when a Normal mode cannot be used (for
        the |CursorHold| autocommand event).  Or when a Normal mode
        command is inconvenient.
        The count can also be a window number.  Example: >
            :exe nr . "wincmd w"
<       This goes to window "nr".
4。将光标移动到其他窗口*窗口移动光标*
CTRL-W*CTRL-W_*
CTRL-W CTRL-J*CTRL-W\U CTRL-J**CTRL-W\U J*
CTRL-W j将光标移动到当前窗口下方的第n个窗口。使用光标
在备选方案之间进行选择的位置。
CTRL-W*CTRL-W_*
CTRL-W CTRL-K*CTRL-W\U CTRL-K**CTRL-W\K*
CTRL-W k将光标移动到当前窗口上方的第n个窗口。使用光标
在备选方案之间进行选择的位置。
CTRL-W*CTRL-W_*
CTRL-W CTRL-H*CTRL-W\U CTRL-H*
CTRL-W*CTRL-W\uW**CTRL-W\uH*
CTRL-W h将光标移动到当前窗口左侧的第n个窗口。使用
光标位置可在备选方案之间进行选择。
CTRL-W*CTRL-W_*
CTRL-W CTRL-L*CTRL-W\U CTRL-L**CTRL-W\U L*
CTRL-W l将光标移动到当前窗口右侧的第n个窗口。使用
光标位置可在备选方案之间进行选择。
CTRL-W W*CTRL-W\U W**CTRL-W\U CTRL-W*
CTRL-W CTRL-W不带计数:将光标移动到屏幕右下方的窗口
当前的一个。如果下方或右侧没有窗口,请转至
左上角的窗口。
使用计数:转到第n个窗口(窗口从
从左上到右下)。要获取窗口编号,请参阅
|bufwinner()和| winner()。当N大于数字时
共个窗口转到最后一个窗口。
*CTRL-W\U W*
CTRL-W不带计数:将光标移动到当前窗口左上方的窗口
一个。如果上面或左边没有窗口,请转到右下角
窗户。使用count:转到第n个窗口,如使用CTRL-W。
CTRL-W t*CTRL-W\U t**CTRL-W\U CTRL-t*
CTRL-W CTRL-T将光标移动到左上角窗口。
CTRL-W b*CTRL-W_b**CTRL-W_CTRL-b*
CTRL-W CTRL-B将光标移动到右下角窗口。
CTRL-W p*CTRL-W\U p**CTRL-W\U CTRL-p*
CTRL-W CTRL-P转到上一个(上次访问)窗口。
*CTRL-W_P**E441*
CTRL-W P转到预览窗口。当没有预览窗口时,这是
一个错误。
{在没有|+quickfix |功能的情况下编译时不可用}
如果可视模式处于活动状态且新窗口不适用于同一缓冲区,则
视觉模式结束。如果窗口位于同一缓冲区上,则光标
“位置”设置为保持选定的相同可视区域。
*:winc**:wincmd*
这些命令也可以通过“:wincmd”:
:[count]winc[md]{arg}
类似于执行CTRL-W[count]{arg}。示例:>
:wincmd j
<移动到当前窗口下方的窗口。
当无法使用正常模式时,此命令非常有用(对于
| CursorHold |自动命令事件)。或者在正常模式下
指挥不方便。
计数也可以是一个窗口编号。示例:>
:exe编号。“wincmd w”
<进入窗口“nr”。
也就是说,通过启用鼠标支持(
set mouse=a
),您只需左键单击光标所在的位置(并拖动窗口边框,然后……)

…给出了有关Vim窗口的章节,包括

:help window-move-cursor
…作为您要查找的子章节:

4. Moving cursor to other windows           *window-move-cursor*

CTRL-W <Down>                   *CTRL-W_<Down>*
CTRL-W CTRL-J                   *CTRL-W_CTRL-J* *CTRL-W_j*
CTRL-W j    Move cursor to Nth window below current one.  Uses the cursor
        position to select between alternatives.

CTRL-W <Up>                 *CTRL-W_<Up>*
CTRL-W CTRL-K                   *CTRL-W_CTRL-K* *CTRL-W_k*
CTRL-W k    Move cursor to Nth window above current one.  Uses the cursor
        position to select between alternatives.

CTRL-W <Left>                   *CTRL-W_<Left>*
CTRL-W CTRL-H                   *CTRL-W_CTRL-H*
CTRL-W <BS>                 *CTRL-W_<BS>* *CTRL-W_h*
CTRL-W h    Move cursor to Nth window left of current one.  Uses the
        cursor position to select between alternatives.

CTRL-W <Right>                  *CTRL-W_<Right>*
CTRL-W CTRL-L                   *CTRL-W_CTRL-L* *CTRL-W_l*
CTRL-W l    Move cursor to Nth window right of current one.  Uses the
        cursor position to select between alternatives.

CTRL-W w                    *CTRL-W_w* *CTRL-W_CTRL-W*
CTRL-W CTRL-W   Without count: move cursor to window below/right of the
        current one.  If there is no window below or right, go to
        top-left window.
        With count: go to Nth window (windows are numbered from
        top-left to bottom-right).  To obtain the window number see
        |bufwinnr()| and |winnr()|.  When N is larger than the number
        of windows go to the last window.

                        *CTRL-W_W*
CTRL-W W    Without count: move cursor to window above/left of current
        one.  If there is no window above or left, go to bottom-right
        window.  With count: go to Nth window, like with CTRL-W w.

CTRL-W t                    *CTRL-W_t* *CTRL-W_CTRL-T*
CTRL-W CTRL-T   Move cursor to top-left window.

CTRL-W b                    *CTRL-W_b* *CTRL-W_CTRL-B*
CTRL-W CTRL-B   Move cursor to bottom-right window.

CTRL-W p                    *CTRL-W_p* *CTRL-W_CTRL-P*
CTRL-W CTRL-P   Go to previous (last accessed) window.

                        *CTRL-W_P* *E441*
CTRL-W P    Go to preview window.  When there is no preview window this is
        an error.
        {not available when compiled without the |+quickfix| feature}

If Visual mode is active and the new window is not for the same buffer, the
Visual mode is ended.  If the window is on the same buffer, the cursor
position is set to keep the same Visual area selected.

                        *:winc* *:wincmd*
These commands can also be executed with ":wincmd":

:[count]winc[md] {arg}
        Like executing CTRL-W [count] {arg}.  Example: >
            :wincmd j
<       Moves to the window below the current one.
        This command is useful when a Normal mode cannot be used (for
        the |CursorHold| autocommand event).  Or when a Normal mode
        command is inconvenient.
        The count can also be a window number.  Example: >
            :exe nr . "wincmd w"
<       This goes to window "nr".
4。将光标移动到其他窗口*窗口移动光标*
CTRL-W*CTRL-W_*
CTRL-W CTRL-J*CTRL-W\U CTRL-J**CTRL-W\U J*
CTRL-W j将光标移动到当前窗口下方的第n个窗口。使用光标
在备选方案之间进行选择的位置。
CTRL-W*CTRL-W_*
CTRL-W CTRL-K*CTRL-W\U CTRL-K**CTRL-W\K*
CTRL-W k将光标移动到当前窗口上方的第n个窗口。使用光标
在备选方案之间进行选择的位置。
CTRL-W*CTRL-W_*
CTRL-W CTRL-H*CTRL-W\U CTRL-H*
CTRL-W*CTRL-W\uW**CTRL-W\uH*
CTRL-W h将光标移动到当前窗口左侧的第n个窗口。使用
光标位置可在备选方案之间进行选择。
CTRL-W*CTRL-W_*
CTRL-W CTRL-L*CTRL-W\U CTRL-L**CTRL-W\U L*
CTRL-W l将光标移动到当前窗口右侧的第n个窗口。使用
光标位置可在备选方案之间进行选择。
CTRL-W W*CTRL-W\U W**CTRL-W\U CTRL-W*
CTRL-W CTRL-W不带计数:将光标移动到屏幕右下方的窗口
当前的一个。如果下方或右侧没有窗口,请转至
左上角的窗口。
使用计数:转到第n个窗口(窗口从
从左上到右下)。要获取窗口编号,请参阅
|bufwinner()和| winner()。当N大于数字时
共个窗口转到最后一个窗口。
*CTRL-W\U W*
CTRL-W不带计数:将光标移动到当前窗口左上方的窗口
一个。如果上面或左边没有窗口,请转到右下角
窗户。使用count:转到第n个窗口,如使用CTRL-W。
CTRL-W t*CTRL-W\U t**CTRL-W\U CTRL-t*
CTRL-W CTRL-T将光标移动到左上角窗口。
CTRL-W b*CTRL-W_b**CTRL-W_CTRL-b*
CTRL-W CTRL-B将光标移动到右下角窗口。
CTRL-W p*CTRL-W\U p**CTRL-W\U CTRL-p*
CTRL-W CTRL-P转到上一个(上次访问)窗口。
*CTRL-W_P**E441*
中心