代码之家  ›  专栏  ›  技术社区  ›  sameera207

用于seeing_is_fishing vim插件的密钥映射

  •  0
  • sameera207  · 技术社区  · 6 年前

    我想得到 seeing_is_believing 与我的vim一起工作的插件。

    到目前为止,我已经能够让键映射工作,对整个文件进行注释并清除注释。

    但是现在我被困在 Mark the current line for annotation

    this is what is in the wiki page

    enter image description here

    我的问题是这个键映射意味着什么(或者我如何阅读这些 键映射)

    " Mark the current line for annotation
    nmap <leader>m A # => <Esc>
    " Mark the highlighted lines for annotation
    vmap <leader>m :norm A # => <Esc>
    
    1 回复  |  直到 6 年前
        1
  •  2
  •   B.G.    6 年前
    nmap <leader>m A # => <Esc>
    

    与插件无关,它只是添加了 # => 如果你按 <leader>m . (见 :h leader

    映射的第一部分是键序列( <领先者>m )为了启动映射,第二部分定义了它的功能 A # => <Esc> A 意思是在行尾进入插入模式。在插入模式下 输入,然后使用 <esc>

    第二次映射 nmap <leader>m A # => <Esc> 完全相同,但对于视觉模式中标记的每一行。(见 :h :norm 它在normal模式下按keypress时执行以下字符串)