1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-02-28 02:45:59 +01:00

Allow comment line action in insert/repeat mode

This commit is contained in:
Oleg Shpynov 2011-03-22 13:18:52 +03:00
parent f3185f2d80
commit 1b2157fc57

View File

@ -737,7 +737,8 @@ public class RegisterActions {
});
// ********************** Various Mode Actions ************************
parser.registerAction(KeyParser.MAPPING_NORMAL | KeyParser.MAPPING_VISUAL, "VimCommentByLineComment", Command.CHANGE,
parser.registerAction(KeyParser.MAPPING_NORMAL | KeyParser.MAPPING_INSERT | KeyParser.MAPPING_VISUAL,
"VimCommentByLineComment", Command.CHANGE,
Command.FLAG_MOT_LINEWISE | Command.FLAG_KEEP_VISUAL);
parser.registerAction(KeyParser.MAPPING_NORMAL | KeyParser.MAPPING_VISUAL, "VimCommentByBlockComment", Command.CHANGE,
Command.FLAG_MOT_LINEWISE);