diff options
author | Jesse Luehrs <doy@tozt.net> | 2018-03-08 22:00:25 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2018-03-08 22:00:25 -0500 |
commit | be08e358b9c80919812376848c5bcab0649489b5 (patch) | |
tree | 773eeed35cf54d1f26aca99b1e976055494e843e /doc | |
parent | 03acca189618a0ccd7ba49ef04b531b758be48e1 (diff) | |
download | vim-autobrace-be08e358b9c80919812376848c5bcab0649489b5.tar.gz vim-autobrace-be08e358b9c80919812376848c5bcab0649489b5.zip |
initial implementation
Diffstat (limited to 'doc')
-rw-r--r-- | doc/autobrace.txt | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/doc/autobrace.txt b/doc/autobrace.txt new file mode 100644 index 0000000..fbb1b2d --- /dev/null +++ b/doc/autobrace.txt @@ -0,0 +1,36 @@ +*autobrace.txt* Automatically insert closing braces and quotes + +Author: Jesse Luehrs <https://tozt.net/> +License: MIT + +============================================================================= +OVERVIEW *autobrace-overview* + +This plugin rebinds some characters to make typing matching characters easier. +Specifically, it does these things: + +* Opening brace and quote characters (specifically, `(`, + `[`, `{`, `'`, and `"`) are mapped to make them automatically insert their + corresponding closing character. +* Typing a closing brace or quote character while the next character past the + cursor is that character will skip over it instead of inserting it. +* Pressing <CR> when the next character is a closing brace will insert two + newlines, and leave the cursor in the middle. +* Pressing <BS> when the previous character is an open brace and there is + nothing but whitespace between the open brace and closing brace will delete + both the open and closing brace. + +============================================================================= +CONFIGURATION *autobrace-configuration* + +None yet, but I'm open to suggestions! + +============================================================================= +BUGS *autobrace-bugs* + +Due to limitations in Vimscript, using this plugin will tend to break using +the `.` operator to repeat insert operations, since the mappings bounce in and +out of normal mode. Suggestions welcome for how to fix this, but as far as I +can tell, it's not actually possible to fix in general currently. + + vim:tw=78:et:ft=help:norl: |