Skip to content

Instantly share code, notes, and snippets.

@metalefty
Created March 22, 2013 10:18
Show Gist options
  • Save metalefty/5220307 to your computer and use it in GitHub Desktop.
Save metalefty/5220307 to your computer and use it in GitHub Desktop.
IdeaVimでgt/gTが使い物にならないのを修正するには、これでいいのかなと思ったら違った。
diff --git a/src/com/maddyhome/idea/vim/key/RegisterActions.java b/src/com/maddyhome/idea/vim/key/RegisterActions.java
index 5b8334a..cd24703 100644
--- a/src/com/maddyhome/idea/vim/key/RegisterActions.java
+++ b/src/com/maddyhome/idea/vim/key/RegisterActions.java
@@ -433,9 +433,9 @@ public class RegisterActions {
// TODO - add zj
// TODO - add zk
- parser.registerAction(KeyParser.MAPPING_NVO, "VimMotionNextTab", Command.Type.MOTION, Command.FLAG_MOT_INCLUSIVE,
+ parser.registerAction(KeyParser.MAPPING_NVO, "VimMotionNextTab", Command.Type.MOTION, Command.FLAG_MOT_INCLUSIVE | Command.FLAG_SAVE_JUMP,
new Shortcut("gt"));
- parser.registerAction(KeyParser.MAPPING_NVO, "VimMotionPreviousTab", Command.Type.MOTION, Command.FLAG_MOT_INCLUSIVE,
+ parser.registerAction(KeyParser.MAPPING_NVO, "VimMotionPreviousTab", Command.Type.MOTION, Command.FLAG_MOT_INCLUSIVE | Command.FLAG_SAVE_JUMP,
new Shortcut("gT"));
parser.registerAction(KeyParser.MAPPING_NVO, "VimMotionCamelEndLeft", Command.Type.MOTION, Command.FLAG_MOT_INCLUSIVE,
new Shortcut("]b"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment