aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/better-text-objs.txt62
1 files changed, 62 insertions, 0 deletions
diff --git a/doc/better-text-objs.txt b/doc/better-text-objs.txt
new file mode 100644
index 0000000..7a83d25
--- /dev/null
+++ b/doc/better-text-objs.txt
@@ -0,0 +1,62 @@
1*better-text-objs.txt* Provide additional text objects
2
3
4==============================================================================
5INTRODUCTION *better-text-objs-intro*
6
7This is a collection of handy text objects I found online,
8written by romainl and habamax. I found these useful and
9decided to package them into a plugin.
10
11==============================================================================
12OVERVIEW *better-text-objs-overview*
13
14Pair |better-text-objs-pair|
15Line |better-text-objs-line|
16Number |better-text-objs-number|
17Buffer |better-text-objs-buffer|
18Indent |better-text-objs-indent|
19
20==============================================================================
21PAIR *better-text-objs-pair*
22
23`i_ i. i: i, i; i| i/ i\ i* i+ i- i#`
24`a_ a. a: a, a; a| a/ a\ a* a+ a- a#`
25
26Text objects in and around any two matching pairs of characters on the same
27line.
28
29==============================================================================
30LINE *better-text-objs-line*
31
32`il al`
33
34Text objects to represent in and around the current line.
35
36==============================================================================
37NUMBER *better-text-objs-number*
38
39`in an`
40
41Text objects in and around a number (if present) under the cursor.
42
43==============================================================================
44BUFFER *better-text-objs-number*
45
46`i% a%`
47
48Text objects representing the active buffer, `i%` excludes the first and last
49lines of the buffer, `a%` includes all lines of the buffer.
50
51==============================================================================
52INDENT *better-text-objs-number*
53
54`ii ai`
55
56Text objects to represent the text at the same indent level, useful for indent
57based programming languages, such as Python or Haskell. `ii` includes only
58text at the same indent level, `ai` includes one line before and one line
59after the current indent level.
60
61------------------------------------------------------------------------------
62vim:tw=78:ts=8:ft=help:norl: