标题:vim - 批量注释快捷键 出处:Felix021 时间:Mon, 16 Mar 2009 11:41:55 +0000 作者:felix021 地址:https://www.felix021.com/blog/read.php?1508 内容: 其实得自己做个map $ vim ~/.vimrc "F5 for comment vmap :s=^\(//\)*=//=g:noh nmap :s=^\(//\)*=//=g:noh imap :s=^\(//\)*=//=g:noh "F6 for uncomment vmap :s=^\(//\)*==g:noh nmap :s=^\(//\)*==g:noh imap :s=^\(//\)*==g:noh Generated by Bo-blog 2.1.0