作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试重新创建一些 https://github.com/tpope/vim-commentary IdeaVim 中的函数。
我在 .ideavimrc
中尝试了各种映射,例如:
nnoremap gcc :action CommentByLineComment<CR>
2gcc
注释掉两行。或
ngcc
注释掉
n
线。
nnoremap 2gcc Vj:action CommentByLineComment<CR><Esc>
nnoremap 3gcc V2j:action CommentByLineComment<CR><Esc>
" etc...
nnoremap gc2j V2j:action CommentByLineComment<CR><Esc>
nnoremap gc3c V3j:action CommentByLineComment<CR><Esc>
" etc...
最佳答案
Ideavim update 0.52, 2019-07-23为 emulation of the vim-commentary plugin 带来了支持.
可以通过将此行添加到 .ideavimrc
来启用它:
set commentary
关于ideavim - 映射以在 IdeaVim 中用 Action 注释掉多行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54934965/
我正在编写一个快速的 preg_replace 来从 CSS 中删除注释。 CSS 注释通常有这样的语法: /* Development Classes*/ /* Un-comment me for
使用 MySQL,我有三个表: 项目: ID name 1 "birthday party" 2 "soccer match" 3 "wine tasting evening" 4
我是一名优秀的程序员,十分优秀!