Skip to main content

Python command line application to convert vimrc to vscode compatible bindings.

Project description

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 vscode-vim.

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 3.6+

Installation

You can get vim2vsc by running:

git clone https://github.com/devanshuDesai/vim2vsc

Usage

cd vim2vsc python3 convert.py

convert.py 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

python3 convert.py –settings ~/downloads/settings.json –nobackup

Equivalently,

python3 convert.py –s ~/downloads/settings.json –b

Contribute

  • Issue Tracker: github.com/$devanshuDesai/vim2vsc/issues

  • Source Code: github.com/devanshuDesai/vim2vsc

License

The project is licensed under the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vim2vsc-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file vim2vsc-0.1.0.tar.gz.

File metadata

  • Download URL: vim2vsc-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7

File hashes

Hashes for vim2vsc-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d8d3a216e5278b0144fb91ca4d0fd9d7a5eb160291ecba332c259c12bf883f9c
MD5 49194631499db0f0317048b8a9bddaaa
BLAKE2b-256 45f9abe8aa22d6b1eaf05f4d8190cb8b714fb16845d719bd07825306448c5b10

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page