This tool is meant to convert your custom vim bindings from your .vimrc
into
VSCode compatible bindings. At the time this tool was created, .vimrc
is not
officially supported by the VScodeVim extension (the most popular vim emulator
for VSCode) and there are no known tool that automate the process formatting vim
bindings for VSCodeVim.
Link to VSCodeVim: https://github.com/VSCodeVim/Vim/
- Formats bindings for Normal Mode, Insert Mode and Visual Mode
- Auto-enables popular vim extensions like airline and vim-easymotion by activating vscode ports. Planned
- Sets flags like
:set hlsearch
andset :inclsearch
. Planned
- Python 2.7+ (Python 3.6+ Recommended)
You can get vim2vsc
by running:
pip install vim2vsc
vim2vsc
vim2vsc
accepts three flags:
--vimrc
Specify the path to your.vimrc
installation (guesses path based on system if you don't provide one).--settings
Specify the path to yoursettings.json
for your VSCode Installation (guesses path based on system if you don't provide one).--nobackup
If this flag is set, vscode-vim doesn't save your oldpackage.json
before modifying it.
vim2vsc --vimrc /Users/.vimrc --settings ~/downloads/settings.json --nobackup
Equivalently, in short hand:
vim2vsc -v /Users/.vimrc -s ~/downloads/settings.json -n
- Issue Tracker: https://github.com/devanshuDesai/vim2vsc/issues
- Source Code: https://github.com/devanshuDesai/vim2vsc
The project is licensed under the MIT license.