Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Inserts matching bracket, paren, brace or quote

branch: master

This branch is 0 commits ahead and 0 commits behind master

Silence errors in command line window

Errors caused by calling pclose in command line window context
latest commit 09ffc59177
Andrew Le authored March 15, 2011
Octocat-spinner-32 plugin
Octocat-spinner-32 README
README
This is a mirror of http://www.vim.org/scripts/script.php?script_id=1849

There are very simple ways to insert a closing brace by setting up a few mappings. The problem with all these approaches is that they break undo, history or both. This script is my sixth attempt at correcting this problem and the first one that has worked in all scenarios.

Using this script, typing ``(`` will result in (|), where | is the cursor position and the double backticks are just marking input. Typing a ``)`` will move the cursor outside the parens. This moving outside works even in nested scenarios. Typing ``if(my_array['key`` results in if(my_array['key|']) and ``)`` gets you if(my_array['key'])|.

The paired characters are: [, (, {, ", '

If you like this script, you should also check out surround.vim
Something went wrong with that request. Please try again.