Vim 命令中的反斜杠

标签 vim keyboard-shortcuts

我觉得这是一个非常愚蠢的问题,但我似乎无法在任何地方找到答案。我对 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 将光标向右移动。我不明白我应该做什么,我觉得非常愚蠢。对不起,如果偏离主题。

最佳答案

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

否则,您需要快速连续按 V\L L(不带 Shift)(默认为一秒内)。

如果您想了解插件是否已成功安装并且这些键背后实际上有一个操作,您可以使用:

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

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

关于Vim 命令中的反斜杠,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52191202/

相关文章:

ubuntu - Vim block 视觉模式插入不起作用

tags - 转到 Notepad++ 中自定义(用户定义)语言中的类似功能的定义

visual-studio - ReSharper 破坏了 "Find"和 "Find in Files"的键盘快捷键

git - 我怎样才能区分两个分支与 Fugitive ?

vim - vim 如何在相同行数的前面插入多行?

vim - 在INSERT模式下,如何在按键时触发omnicomplete/auto-completion?

keyboard-shortcuts - Visual Studio 2017 中的 Ctrl+Shift+Tab

vim - 在 neomutt 中回复时在 vim 中设置起始光标位置

java - Eclipse 中的快捷键

macos - 如何在 Mac 的 emacs 中绑定(bind) ESC 以退出 (C-g)