https://github.com/wojukasz/VimCode
Enhanced VS Code configuration with Vim keybindings for efficient coding workflows. This setup combines the power of Vim motions with VS Code's modern features.
Some of the shortcuts are experimental and I am trying things on the go so please leave a comment and feel free to adjust.
- Vim-style split navigation (
ctrl+h/j/k/l
) - Quick file switching with
alt+[
andalt+]
- Efficient split management with
alt+h/l
for resizing
- Toggle sidebar:
<leader>e
- File navigation with Vim keys
- Quick file operations (rename, create, delete)
- Enhanced workspace search with
<leader>s w
- Find in files:
ctrl+shift+f
- Navigate results:
F4/Shift+F4
- Format document:
ctrl+space f
- Go to definition:
ctrl+]
- Navigate back:
ctrl+t
- Toggle blame:
<leader>g b
- Quick stage:
<leader>g s
- Pull:
<leader>g p
- Push:
<leader>g P
- View history:
<leader>g h
- Toggle terminal:
ctrl+;
- Maximize terminal:
ctrl+shift+;
- Create new terminal:
<leader>t n
- Copy
settings.json
to your VS Code user settings - Copy
keybindings.json
to your VS Code keybindings - Install required extensions:
- Vim
- GitLens (for enhanced git features)
- Leader key is set to
<space>
- Consistent use of Vim navigation patterns
- Integration with VS Code's native features
- Enhanced terminal and git workflows
- Open sidebar:
<leader>e
- Navigate files:
j/k
- Expand/collapse:
l/h
- Open in split:
ctrl+shift+1/2
- Stage changes:
<leader>g s
- View changes:
<leader>g d
- Push changes:
<leader>g P
- Go to definition:
ctrl+]
- Return from definition:
ctrl+t
- Find in workspace:
<leader>s w
Edit the following files to customize the configuration:
settings.json
: VS Code and Vim settingskeybindings.json
: Custom keyboard shortcuts
Feel free to submit issues and enhancement requests!
yeah, its not something I explored yet but I will try build upon this config over time