aboutsummaryrefslogtreecommitdiff
path: root/vim/doc/unimpaired.txt
diff options
context:
space:
mode:
authorBen Beltran <ben@freshout.us>2012-10-08 11:44:10 -0500
committerBen Beltran <ben@freshout.us>2012-10-08 11:44:10 -0500
commit0d23b6e515a01a5782532351821ebfa11f3d6cf2 (patch)
treeaa395b7e50ccb533d6b48b809016ac06f2d5bc8c /vim/doc/unimpaired.txt
parenta91731eac872b7837c2821341db5888702125cef (diff)
Add vim again :)
Diffstat (limited to 'vim/doc/unimpaired.txt')
-rw-r--r--vim/doc/unimpaired.txt103
1 files changed, 103 insertions, 0 deletions
diff --git a/vim/doc/unimpaired.txt b/vim/doc/unimpaired.txt
new file mode 100644
index 0000000..82d61a9
--- /dev/null
+++ b/vim/doc/unimpaired.txt
@@ -0,0 +1,103 @@
+*unimpaired.txt* Pairs of handy bracket mappings
+
+Author: Tim Pope <http://tpo.pe/>
+License: Same terms as Vim itself (see |license|)
+
+This plugin is only available if 'compatible' is not set.
+
+INTRODUCTION *unimpaired*
+
+This plugin provides several pairs of bracket maps.
+
+NEXT AND PREVIOUS *unimpaired-next*
+
+The following maps all correspond to normal mode commands. If a count is
+given, it becomes an argument to the command. A mnemonic for the "a" commands
+is "args" and for the "q" commands is "quickfix".
+
+*[a* |:previous|
+*]a* |:next|
+*[A* |:first|
+*]A* |:last|
+*[b* |:bprevious|
+*]b* |:bnext|
+*[B* |:bfirst|
+*]B* |:blast|
+*[l* |:lprevious|
+*]l* |:lnext|
+*[L* |:lfirst|
+*]L* |:llast|
+*[q* |:cprevious|
+*]q* |:cnext|
+*[Q* |:cfirst|
+*]Q* |:clast|
+*[t* |:tprevious|
+*]t* |:tnext|
+*[T* |:tfirst|
+*]T* |:tlast|
+
+ *[o*
+[o Go to the file preceding the current one
+ alphabetically in the current file's directory.
+
+ *]o*
+]o Go to the file succeeding the current one
+ alphabetically in the current file's directory.
+
+LINE OPERATIONS *unimpaired-lines*
+
+ *[<Space>*
+[<Space> Add [count] blank lines above the cursor.
+
+ *]<Space>*
+]<Space> Add [count] blank lines below the cursor.
+
+ *[e* *v_[e*
+[e Exchange the current line with [count] lines above it.
+
+ *]e* *v_]e*
+]e Exchange the current line with [count] lines below it.
+
+ENCODING AND DECODING *unimpaired-encoding*
+
+Each of these operations has a map that takes a motion, a map that
+targets [count] lines, and a visual mode map. The linewise variant integrates
+with repeat.vim.
+
+Mnenomic: encoding always comes before decoding; "[" always comes before "]".
+
+ *[x* *[xx* *v_[x*
+[x{motion} XML encode.
+[xx <foo bar="baz"> => &lt;foo bar=&quot;baz&quot&gt;
+{Visual}[x
+
+ *]x* *]xx* *v_]x*
+]x{motion} XML decode. HTML entities are handled as well.
+]xx
+{Visual}]x
+
+ *[u* *[uu* *v_[u*
+[u{motion} URL encode.
+[uu foo bar => foo%20bar
+{Visual}[u
+
+ *]u* *]uu* *v_]u*
+]u{motion} URL decode.
+]uu
+{Visual}]u
+
+ *[y* *[yy* *v_[y*
+[y{motion} C String encode. Backslash escape control
+[yy characters, quotation marks, and backslashes.
+{Visual}[y
+
+ *]y* *]yy* *v_]y*
+]y{motion} C String decode.
+]yy
+{Visual}]y
+
+TODO *unimpaired-todo*
+
+Avoid munging null characters when encoding and decoding.
+
+ vim:tw=78:et:ft=help:norl: