aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-03-08 22:04:22 -0500
committerJesse Luehrs <doy@tozt.net>2018-03-08 22:04:22 -0500
commit0113c56e537e0ebf5e41fadcc9fb52cb3af8e04a (patch)
tree1f0c480ca3e2d68e4ffb9963b2b267c07b4385f9
parentbe08e358b9c80919812376848c5bcab0649489b5 (diff)
downloadvim-autobrace-0113c56e537e0ebf5e41fadcc9fb52cb3af8e04a.tar.gz
vim-autobrace-0113c56e537e0ebf5e41fadcc9fb52cb3af8e04a.zip
add note about apostrophes
-rw-r--r--README.md4
-rw-r--r--doc/autobrace.txt4
2 files changed, 6 insertions, 2 deletions
diff --git a/README.md b/README.md
index e73dc24..8cc7f24 100644
--- a/README.md
+++ b/README.md
@@ -5,7 +5,9 @@ Specifically, it does these things:
* Opening brace and quote characters (specifically, `(`,
`[`, `{`, `'`, and `"`) are mapped to make them automatically insert their
- corresponding closing character.
+ corresponding closing character. `'` is special-cased to not insert the
+ closing character when typed after a word character, to avoid triggering
+ when typing words with apostrophes.
* 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
diff --git a/doc/autobrace.txt b/doc/autobrace.txt
index fbb1b2d..6d82da5 100644
--- a/doc/autobrace.txt
+++ b/doc/autobrace.txt
@@ -11,7 +11,9 @@ Specifically, it does these things:
* Opening brace and quote characters (specifically, `(`,
`[`, `{`, `'`, and `"`) are mapped to make them automatically insert their
- corresponding closing character.
+ corresponding closing character. `'` is special-cased to not insert the
+ closing character when typed after a word character, to avoid triggering
+ when typing words with apostrophes.
* 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