Skip to content

Commit

Permalink
Don't show v in status bar when triggering visual mode
Browse files Browse the repository at this point in the history
Fixes #3189
This is a petty fix, but it's been bugging me. The status bar really needs a refactor.
  • Loading branch information
J-Fields committed Aug 29, 2019
1 parent c80ef08 commit c425da3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/mode/modes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ export class VisualMode extends Mode {
constructor() {
super(ModeName.Visual, '-- Visual --', VSCodeVimCursorType.TextDecoration, true);
}

getStatusBarCommandText(vimState: VimState): string {
const cmd = vimState.recordedState.commandString;

// Don't show the `v` that brings you into visual mode
return cmd.length === 0 || cmd[0] === 'v' ? cmd.slice(1) : cmd;
}
}

export class VisualBlockMode extends Mode {
Expand Down

0 comments on commit c425da3

Please sign in to comment.