Vim Balanced Quotes
This week I’ve published a Vim plugin for balancing inserted quotes and backticks. Check the documentation for detailed getting started and usage instructions, the source code is available on GitHub. What follows is the TLDR for installation and usage…
Clone
mkdir -vp ~/git/hub/vim-utilities
cd ~/git/hub/vim-utilities
git clone git@github.com:vim-utilities/balanced-quotes.git
Install
cd ~/git/hub/vim-utilities/balanced-quotes
make install
Usage
While in Insert mode quotes will have the following behavior:
-
‘ Open single-quote; automatically inserts a closing quote, and moves cursor left by one column
-
“ Open double-quote; automatically inserts a closing quote, and moves cursor left by one column
-
` Open backtick; automatically inserts a closing backtick, and moves cursor left by one column