1
+ # vim-pairs
2
+
3
+ This is a vim 9 fork of [ tpope/vim-unimpaired] [ unimpaired ] .
4
+
1
5
# unimpaired.vim
2
6
3
- Much of unimpaired.vim was extracted from my vimrc when I noticed a
4
- pattern: complementary pairs of mappings. They mostly fall into four
5
- categories.
7
+ Much of unimpaired.vim was extracted from my vimrc when I noticed a pattern:
8
+ complementary pairs of mappings. They mostly fall into four categories.
6
9
7
- There are mappings which are simply short normal mode aliases for
8
- commonly used ex commands. ` ]q ` is : cnext . ` [q ` is : cprevious . ` ]a ` is
9
- : next . ` [b ` is : bprevious . See the documentation for the full set of
10
- 20 mappings and mnemonics. All of them take a count.
10
+ There are mappings which are simply short normal mode aliases for commonly used
11
+ ex commands. ` ]q ` is : cnext . ` [q ` is : cprevious . ` ]a ` is : next . ` [b ` is
12
+ : bprevious . See the documentation for the full set of 20 mappings and mnemonics.
13
+ All of them take a count.
11
14
12
- There are linewise mappings. ` [<Space> ` and ` ]<Space> ` add newlines
13
- before and after the cursor line. ` [e ` and ` ]e ` exchange the current
14
- line with the one above or below it.
15
+ There are linewise mappings. ` [<Space> ` and ` ]<Space> ` add newlines before and
16
+ after the cursor line. ` [e ` and ` ]e ` exchange the current line with the one
17
+ above or below it.
15
18
16
19
There are mappings for toggling options. ` [os ` , ` ]os ` , and ` yos ` perform
17
- ` :set spell ` , ` :set nospell ` , and ` :set invspell ` , respectively. There's also
18
- ` l ` (` list ` ), ` n ` (` number ` ), ` w ` (` wrap ` ), ` x ` (` cursorline cursorcolumn ` ),
19
- and several others, plus mappings to help alleviate the ` set paste ` dance.
20
- Consult the documentation.
20
+ ` :set spell ` , ` :set nospell ` , and ` :set invspell ` , respectively. There's also
21
+ ` l ` (` list ` ), ` n ` (` number ` ), ` w ` (` wrap ` ), ` x ` (` cursorline cursorcolumn ` ), and
22
+ several others, plus mappings to help alleviate the ` set paste ` dance. Consult
23
+ the documentation.
21
24
22
- There are mappings for encoding and decoding. ` [x ` and ` ]x ` encode and
23
- decode XML (and HTML). ` [u ` and ` ]u ` encode and decode URLs. ` [y ` and
24
- ` ]y ` do C String style escaping.
25
+ There are mappings for encoding and decoding. ` [x ` and ` ]x ` encode and decode
26
+ XML (and HTML). ` [u ` and ` ]u ` encode and decode URLs. ` [y ` and ` ]y ` do C String
27
+ style escaping.
25
28
26
29
And in the miscellaneous category, there's ` [f ` and ` ]f ` to go to the
27
- next/previous file in the directory, and ` [n ` and ` ]n ` to jump between
28
- SCM conflict markers.
30
+ next/previous file in the directory, and ` [n ` and ` ]n ` to jump between SCM
31
+ conflict markers.
29
32
30
33
The ` . ` command works with all operator mappings, and will work with the
31
34
linewise mappings as well if you install
@@ -43,7 +46,7 @@ support:
43
46
44
47
## FAQ
45
48
46
- > My non-US keyboard makes it hard to type ` [ ` and ` ] ` . Can I configure
49
+ > My non-US keyboard makes it hard to type ` [ ` and ` ] ` . Can I configure
47
50
> different prefix characters?
48
51
49
52
The easiest solution is to map to ` [ ` and ` ] ` directly:
@@ -55,7 +58,7 @@ The easiest solution is to map to `[` and `]` directly:
55
58
xmap < [
56
59
xmap > ]
57
60
58
- Note we're not using the ` noremap ` family because we * do * want to recursively
61
+ Note we're not using the ` noremap ` family because we _ do _ want to recursively
59
62
invoke unimpaired.vim's maps.
60
63
61
64
## Contributing
@@ -67,12 +70,13 @@ See the contribution guidelines for
67
70
68
71
Like unimpaired.vim? Follow the repository on
69
72
[ GitHub] ( https://github.com/tpope/vim-unimpaired ) and vote for it on
70
- [ vim.org] ( http://www.vim.org/scripts/script.php?script_id=1590 ) . And if
71
- you're feeling especially charitable, follow [ tpope] ( http://tpo.pe/ ) on
72
- [ Twitter] ( http://twitter.com/tpope ) and
73
- [ GitHub] ( https://github.com/tpope ) .
73
+ [ vim.org] ( http://www.vim.org/scripts/script.php?script_id=1590 ) . And if you're
74
+ feeling especially charitable, follow [ tpope] ( http://tpo.pe/ ) on
75
+ [ Twitter] ( http://twitter.com/tpope ) and [ GitHub] ( https://github.com/tpope ) .
74
76
75
77
## License
76
78
77
- Copyright (c) Tim Pope. Distributed under the same terms as Vim itself.
78
- See ` :help license ` .
79
+ Copyright (c) Tim Pope. Distributed under the same terms as Vim itself. See
80
+ ` :help license ` .
81
+
82
+ [ unimpaired ] : https://github.com/tpope/vim-unimpaired
0 commit comments