Skip to content

Automatic completion of bracket delimiters in Vim.

License

Notifications You must be signed in to change notification settings

kleanse/autodeli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Autodeli

Simple plugin for completing bracket delimiters automatically in Vim.

demo

What is it?

Autodeli is a simple plugin for Vim that makes typing bracket delimiters easier. When typing the opening character of a delimiter pair, you will also insert its closing character. For example, where | represents the cursor, entering (

int foo|

yields

int foo(|)

Deletion works similarly: Autodeli will delete the closing character (with some stipulations) of a pair when its opening character is deleted.

For details, see the help file.

Installation

Install with your package manager of choice or Vim's built-in support for packages (see :help packages):

mkdir -p ~/.vim/pack/autodeli/start
cd ~/.vim/pack/autodeli/start
git clone https://github.com/kleanse/autodeli.git
vim -u NONE -c "helptags autodeli/doc" -c q

Usage

Enter :Autodeli to see if Autodeli was installed successfully. You should get a message indicating whether Autodeli is active.

To enable Autodeli, use :Autodeli on. Likewise, use :Autodeli off to disable the plugin. Use :Autodeli help to see the arguments that the command accepts and their descriptions.

For more information, see the "Using Autodeli" section in the help file.

Delimiters

Autodeli supports the following delimiter pairs:

Delimiter Name
( ) Parentheses
[ ] Brackets
{ } Braces
' ' Single quotes
" " Double quotes

About

Automatic completion of bracket delimiters in Vim.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published