LunarKeymap
This extension provides keymaps for Vim and Which Key to achieve keyboard driven workflow in Visual Studio Code. Inspired by LunarVim.
Usage
Full list of shortcuts are available on Feature Contributions
Workspace navigation

Key |
Mode |
Features |
ctrl+h |
n, v, i |
Move focus left |
ctrl+j |
n, v, i |
Move focus down |
ctrl+k |
n, v, i |
Move focus up |
ctrl+l |
n, v, i |
Move focus right |
alt+j |
n, v, i |
Focus terminal |
tab |
n |
Cycle next tab |
shift+tab |
n |
Cycle previous tab |
List navigation

Key |
Features |
ctrl+j |
Cycle next suggestion or option |
ctrl+k |
Cycle previous suggestion or option |
tab |
Cycle next suggestion or option |
shift+tab |
Cycle previous suggestion or option |
Common keymaps

Key |
Mode |
Features |
> |
v |
Indent selected lines |
< |
v |
Outdent selected lines |
ctrl+shift+t |
n, v, i |
Create/Toggle terminal |
ctrl+space |
n, v, i |
Open Which Key shortcut menu |
File explorer

Key |
Features |
ctrl+e |
Open explorer |
a |
Create new file |
A or shift+a |
Create new folder |
h |
Collapse list |
j |
Move down |
k |
Move up |
l |
Expand list |
o |
Expand list |
r |
Rename file |
enter |
Select file |
Which Key (Common)

Key |
Features |
ctrl+space |
Open Which Key shortcut menu |
ctrl+space+/ |
Toggle comment line |
ctrl+space+; |
Open command palette |
ctrl+space+e |
Toggle file explorer |
ctrl+space+h |
Horizontal split |
ctrl+space+v |
Vertical split |
ctrl+space+z |
Toggle zen mode |
Which Key (Buffers)

Key |
Features |
ctrl+space |
Open Which Key shortcut menu |
ctrl+space+bn |
Cycle next editor |
ctrl+space+bp |
Cycle previous editor |
ctrl+space+bc |
Close current editor |
ctrl+space+bu |
Reopen closed editor |
ctrl+space+bx |
Close other editors |
ctrl+space+bh |
Move current editor to left group |
ctrl+space+bj |
Move current editor to below group |
ctrl+space+bk |
Move current editor to above group |
ctrl+space+bl |
Move current editor to right group |
Defaults
"vim.useSystemClipboard": true,
"vim.useCtrlKeys": true,
"vim.easymotion": true,
"vim.incsearch": true,
"vim.hlsearch": true,
"vim.sneak": true,
"vim.handleKeys": {
"<C-space>": false,
"<C-e>": false,
"<C-h>": false,
"<C-j>": false,
"<C-k>": false,
"<C-l>": false,
"<C-d>": true
}
- Open command palette
ctrl+shift+p
- Open Keyboard Shortcuts (JSON)
- Add
{
"key": "ctrl+space",
"command": "whichkey.show"
},
- Save keyboard shortcuts
- Open command palette
ctrl+shift+p
- Open User Settings (JSON)
- Add
"vim.handleKeys": {
"<C-space>": false
}
- Save user settings
Known Issues
shift+tab
in quick open is not supported
Installation
Go to Lunar Keymap on Visual Studio Code Marketplace
- Install Visual Studio Code
- Launch Visual Studio Code
- Open extension view
ctrl+shift+x
- Search and install
Lunar Keymap
- Reload Visual Studio Code
Contributing
- Go to Lunar Keymap GitHub repository.
- Open package.json.
- Add JSON object to contributes.configurationDefaults or contributes.keybindings.
- Open a pull request.
License
This extension is licensed under the MIT License
Reference
- VSCode with embedded Neovim, chris@machine
Open youtube link
- THE BEST VIM CONFIG FOR VSCODE | configure vscode like vim, Joaquin Varela
Open youtube link