Esempio n. 1
0
 public int getOffset(
     @NotNull Editor editor,
     DataContext context,
     int count,
     int rawCount,
     @NotNull Argument argument) {
   final String command = argument.getString();
   if (command == null) {
     return -1;
   }
   return VimPlugin.getSearch().search(editor, command, count, Command.FLAG_SEARCH_FWD, false);
 }
Esempio n. 2
0
 public boolean execute(
     @NotNull Editor editor, @NotNull DataContext context, @NotNull Command cmd) {
   final Argument argument = cmd.getArgument();
   return argument != null
       && VimPlugin.getChange().insertRegister(editor, context, argument.getCharacter());
 }