aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-11-05 03:33:21 +0000
committerAkshay <[email protected]>2020-11-05 03:33:21 +0000
commit383f2a7b645b085a428b3ac04f0fc4a000a8e2ba (patch)
tree992be09edab2d8d727512f6d4cfe8fbe27080e0f
parent07bffe8c51ce575db0b1ea8571c3e182254c0e2a (diff)
add backquote text objsv0.1.0
-rw-r--r--doc/better-text-objs.txt18
-rw-r--r--plugin/better-text-objs.vim8
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==============================================================================
12OVERVIEW *better-text-objs-overview* 12OVERVIEW *better-text-objs-overview*
13 13
14Pair |better-text-objs-pair| 14Pair |better-text-objs-pair|
15Line |better-text-objs-line| 15Line |better-text-objs-line|
16Number |better-text-objs-number| 16Backquote |better-text-objs-backquote|
17Buffer |better-text-objs-buffer| 17Number |better-text-objs-number|
18Indent |better-text-objs-indent| 18Buffer |better-text-objs-buffer|
19Indent |better-text-objs-indent|
19 20
20============================================================================== 21==============================================================================
21PAIR *better-text-objs-pair* 22PAIR *better-text-objs-pair*
@@ -34,6 +35,13 @@ LINE *better-text-objs-line*
34Text objects to represent in and around the current line. 35Text objects to represent in and around the current line.
35 36
36============================================================================== 37==============================================================================
38BACKQUOTE *better-text-objs-backquote*
39
40`ix ax`
41
42Aliases for inner backquote and around backquote.
43
44==============================================================================
37NUMBER *better-text-objs-number* 45NUMBER *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>
19xnoremap al $o0 19xnoremap al $o0
20onoremap al :<C-u>normal val<CR> 20onoremap al :<C-u>normal val<CR>
21 21
22" backquote text objects
23" -----------------
24" ix ax
25xnoremap ix :<C-u>normal vi`<CR>
26onoremap ix :<C-u>normal vi`<CR>
27xnoremap ax :<C-u>normal va`<CR>
28onoremap 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