diff options
-rw-r--r-- | doc/better-text-objs.txt | 18 | ||||
-rw-r--r-- | plugin/better-text-objs.vim | 8 |
2 files changed, 21 insertions, 5 deletions
diff --git a/doc/better-text-objs.txt b/doc/better-text-objs.txt index 7a83d25..65fd191 100644 --- a/doc/better-text-objs.txt +++ b/doc/better-text-objs.txt | |||
@@ -11,11 +11,12 @@ decided to package them into a plugin. | |||
11 | ============================================================================== | 11 | ============================================================================== |
12 | OVERVIEW *better-text-objs-overview* | 12 | OVERVIEW *better-text-objs-overview* |
13 | 13 | ||
14 | Pair |better-text-objs-pair| | 14 | Pair |better-text-objs-pair| |
15 | Line |better-text-objs-line| | 15 | Line |better-text-objs-line| |
16 | Number |better-text-objs-number| | 16 | Backquote |better-text-objs-backquote| |
17 | Buffer |better-text-objs-buffer| | 17 | Number |better-text-objs-number| |
18 | Indent |better-text-objs-indent| | 18 | Buffer |better-text-objs-buffer| |
19 | Indent |better-text-objs-indent| | ||
19 | 20 | ||
20 | ============================================================================== | 21 | ============================================================================== |
21 | PAIR *better-text-objs-pair* | 22 | PAIR *better-text-objs-pair* |
@@ -34,6 +35,13 @@ LINE *better-text-objs-line* | |||
34 | Text objects to represent in and around the current line. | 35 | Text objects to represent in and around the current line. |
35 | 36 | ||
36 | ============================================================================== | 37 | ============================================================================== |
38 | BACKQUOTE *better-text-objs-backquote* | ||
39 | |||
40 | `ix ax` | ||
41 | |||
42 | Aliases for inner backquote and around backquote. | ||
43 | |||
44 | ============================================================================== | ||
37 | NUMBER *better-text-objs-number* | 45 | NUMBER *better-text-objs-number* |
38 | 46 | ||
39 | `in an` | 47 | `in an` |
diff --git a/plugin/better-text-objs.vim b/plugin/better-text-objs.vim index e959e6e..4cb0acd 100644 --- a/plugin/better-text-objs.vim +++ b/plugin/better-text-objs.vim | |||
@@ -19,6 +19,14 @@ onoremap il :<C-u>normal vil<CR> | |||
19 | xnoremap al $o0 | 19 | xnoremap al $o0 |
20 | onoremap al :<C-u>normal val<CR> | 20 | onoremap al :<C-u>normal val<CR> |
21 | 21 | ||
22 | " backquote text objects | ||
23 | " ----------------- | ||
24 | " ix ax | ||
25 | xnoremap ix :<C-u>normal vi`<CR> | ||
26 | onoremap ix :<C-u>normal vi`<CR> | ||
27 | xnoremap ax :<C-u>normal va`<CR> | ||
28 | onoremap ax :<C-u>normal va`<CR> | ||
29 | |||
22 | " number text object (integer and float) | 30 | " number text object (integer and float) |
23 | " -------------------------------------- | 31 | " -------------------------------------- |
24 | " in | 32 | " in |