Skip to content

Commit

Permalink
Add documentation for AutoPairsMapSpace
Browse files Browse the repository at this point in the history
  • Loading branch information
camthompson committed Dec 13, 2011
1 parent 1522bff commit 21b4b10
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ Features
|
}

* Insert spaces before closing characters

input: {|} (press <SPACE> at |)
output: { | }

* Skip closed bracket.

input: []
Expand Down Expand Up @@ -105,6 +110,13 @@ Options

When g:AutoPairsMapCR is on, center current line after return if the line is at the bottom 1/3 of the window.

* g:AutoPairsMapSpace

Default : 1

Map <space> to insert a space after the opening character and before the closing one.
execute 'inoremap <buffer> <silent> <CR> <C-R>=AutoPairsReturn()<CR>'

TroubleShooting
---------------
The script will remap keys ([{'"}]) <BS>,
Expand Down

0 comments on commit 21b4b10

Please sign in to comment.