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); }
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()); }