A VSCode extension that allows entering a temporary mode for moving around the code using supported vim motions.
This makes it easier to intertwine regular VSCode nagivation with using vim's motions.
- basic move up/down/right/left (
j
,k
,h
,l
) - next/previous character in line (
f
,F
) - start/end of the line (
$
,^
) - basic word motions (
w
,e
,b
)
When it makes sense, a number prefix (e.g. 2f{
) executes a motion given number of times.
-
highlights the current position in the code
-
temporarily enables relative line numbers to make navigation easier
-
supports executing a motion multiple times (e.g.
15l
) -
when moving close to the top/bottom of the editor, shows surrounding lines
None
This extension contributes the following settings:
temporary-vim-motions.toggleRelativeLineNumbers
: enable/disable turning on relative line numbers when executing motionstemporary-vim-motions.surroundingLines
: number of surrounding lines to show when scrolling. If empty - the surrounding lines feature is disabled.
By default, there are no keyboard shortcuts for this command, so if you'd like, set a keybinding for
the temporary-vim-motions.execute
command.
Keep in mind that this extension does not offer full vim support. For that, you probably want to use vim or Neo Vim extensions
See the CHANGELOG.
Found a bug? Want a new feature/motion? Feel free to do any of the following:
- Create an issue
- Open a PR with a bugfix/feature
Contributions are greatly appreciated!