Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
本教程给出了这个例子:
<leader>c$ |NERDComEOLComment| Comments the current line from the cursor to the end of line.
但是在 vim 中按\c$or,c$会复制当前行并切换到插入模式。
\c$
,c$
我已经通过病原体安装了插件并且:help nerdcommenter确实可以工作,但是在 的输出中没有提到 nerdcommenter :scripts,不知道这是否意味着插件没有成功安装。
:help nerdcommenter
:scripts
这看起来不错。以下是一些故障排除提示:
:scriptnames
.../plugin/NERD_commenter.vim
:echo loaded_nerd_comments
:echo g:NERDCreateDefaultMappings
:nmap <Leader>c
:nmap <Leader>x :echomsg "Works"<CR>
\x
:set paste
:set nopaste