Vim 命令中的反斜杠

Vim backslash in command

我觉得这是一个非常愚蠢的问题,但我似乎无法在任何地方找到答案。我对 vim 比较陌生。全新安装后,我安装了 vim-LaTeX 插件,或 vim 的 LaTeX 套件。它可以正常工作,因为有一些我不明白的命令。它给出了以下指令:

To do this, visually select a portion of the text and press \ll while in visual mode. The visually selected portion will be saved to a temporary file with the preamble from the current document prepended. Latex-Suite will then switch focus to this temporary file and compile it

但是,如果我按“\”,它什么也不做,双 l 将光标向右移动。我不明白我应该做什么,我觉得自己非常愚蠢。对不起,如果题外话。

v进入视觉模式。然后您可以使用箭头键 select 文本。 select编辑完所需的文本后,输入 \ll.

应该是这样。

\:help <Leader> 键的默认值。鼓励插件以 <Leader> 开始所有默认映射。如果您重新定义了它,则需要改用该键。

否则需要按V\LL (没有 Shift)快速连续(默认情况下在一秒内)。

如果你想知道插件是否已经成功安装,并且这些键背后确实有一个动作,你可以使用:

:verbose vmap <Leader>ll
:verbose vmap \ll

如果 Vim 说 No mapping found,或仅列出以某些键开头的其他映射,则插件未正确安装,或者您没有正确使用它。