unimpaired.vim : Pairs of handy bracket mappings
| script karma |
Rating 120/46,
Downloaded by 2491
|
Comments, bugs, improvements
|
Vim wiki
|
| created by |
| Tim Pope |
| |
| script type |
| utility |
| |
| description |
Much of unimpaired.vim was extracted from my vimrc when I noticed a pattern: complementary pairs of mappings. They fall into three categories.
There are mappings which are simply short normal mode aliases for commonly used ex commands. ]q is :cnext. [q is :cprevious. ]a is :next. [b is :bprevious. See the documentation for the full set of 16 mappings and mnemonics. All of them take a count.
There are linewise mappings. [<Space> and ]<Space> add newlines before and after the cursor line. [e and ]e exchange the current line with the one above or below it.
There are mappings for encoding and decoding. [x and ]x encode and decode XML (and HTML). [u and ]u encode and decode URLs. [y and ]y do C String style escaping.
Oh, and there's also [f and ]f to go to the previous/next file in the directory, and [n and ]n to go between SCM conflict markers.
http://github.com/tpope/vim-unimpaired |
| |
| install details |
| Unzip in ~/.vim (~\vimfiles on Windows). Use :helptags ~/.vim/doc to enable :help. |
| |
script versions (upload new version)
Click on the package to download.
| unimpaired.zip |
1.2 |
2013-01-14 |
7.0 |
Tim Pope |
Add repeat.vim support.
Add [t and ]t for :tprev and :tnext.
Add [n and ]n for jumping between conflict markers.
Add [<C-Q> and ]<C-Q> for :cpfile and :cnfile.
Add [<C-L> and ]<C-L> for :lpfile and :lnfile.
Deprecate [o and ]o in favor of new maps [f and ]f.
Improve robustness of [f and ]f.
Improve robustness of [e and ]e.
Fix unescaping of "\a" and "\$".
Work around `unnamedplus' in clipboard.
Expose API for custom encoding algorithms. |
| unimpaired.zip |
1.1 |
2010-03-07 |
7.0 |
Tim Pope |
Add <Plug> aliases for all mappings.
Skip swap files with ]o and [o.
Accept a count with [e and ]e. |
| unimpaired.zip |
1.0 |
2010-01-29 |
6.0 |
Tim Pope |
Initial upload |
ip used for rating: 184.73.74.47
|