aboutsummaryrefslogtreecommitdiff
path: root/doc/better-text-objs.txt
blob: 7a83d251f6c2409c7187ca80c2e4f51e5ed25432 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
*better-text-objs.txt*	Provide additional text objects


==============================================================================
INTRODUCTION                                         *better-text-objs-intro*

This is a collection of handy text objects I found online,
written by romainl and habamax. I found these useful and
decided to package them into a plugin.

==============================================================================
OVERVIEW                                          *better-text-objs-overview*

Pair    |better-text-objs-pair|
Line    |better-text-objs-line|
Number  |better-text-objs-number|
Buffer  |better-text-objs-buffer|
Indent  |better-text-objs-indent|

==============================================================================
PAIR                                          *better-text-objs-pair*

`i_ i. i: i, i; i| i/ i\ i* i+ i- i#`
`a_ a. a: a, a; a| a/ a\ a* a+ a- a#`

Text objects in and around any two matching pairs of characters on the same
line.

==============================================================================
LINE                                          *better-text-objs-line*

`il al`

Text objects to represent in and around the current line.

==============================================================================
NUMBER                                          *better-text-objs-number*

`in an`

Text objects in and around a number (if present) under the cursor.

==============================================================================
BUFFER                                          *better-text-objs-number*

`i% a%`

Text objects representing the active buffer, `i%` excludes the first and last
lines of the buffer, `a%` includes all lines of the buffer.

==============================================================================
INDENT                                         *better-text-objs-number*

`ii ai`

Text objects to represent the text at the same indent level, useful for indent
based programming languages, such as Python or Haskell. `ii` includes only
text at the same indent level, `ai` includes one line before and one line
after the current indent level.

------------------------------------------------------------------------------
vim:tw=78:ts=8:ft=help:norl: