本教程给出了以下示例:
<leader>c$ |NERDComEOLComment|
Comments the current line from the cursor to the end of line. 但是在vim中按\c$或,c$可以复制当前行并切换到插入模式。
我已经通过病原体安装了插件,:help nerdcommenter也能工作,但是在:scripts的输出中没有提到书呆子,不知道这是否意味着插件还没有成功安装。
发布于 2016-08-23 14:06:57
这个看起来不错。以下是一些故障排除技巧:
: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撤销。https://stackoverflow.com/questions/39090836
复制相似问题