Skip to content

A quick tool to convert your custom vim bindings to vscode-vim compatible bindings

License

Notifications You must be signed in to change notification settings

devanshuDesai/vim2vsc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim2vsc

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/

Features

  • 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 and set :inclsearch. Planned

Requirements

  • Python 2.7+ (Python 3.6+ Recommended)

Installation

You can get vim2vsc by running:

pip install vim2vsc

Usage

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 your settings.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 old package.json

before modifying it.

Examples

vim2vsc --vimrc /Users/.vimrc --settings ~/downloads/settings.json --nobackup

Equivalently, in short hand:

vim2vsc -v /Users/.vimrc -s ~/downloads/settings.json -n

Contribute

License

The project is licensed under the MIT license.

About

A quick tool to convert your custom vim bindings to vscode-vim compatible bindings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages