diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/better-text-objs.txt | 62 |
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 | ============================================================================== | ||
5 | INTRODUCTION *better-text-objs-intro* | ||
6 | |||
7 | This is a collection of handy text objects I found online, | ||
8 | written by romainl and habamax. I found these useful and | ||
9 | decided to package them into a plugin. | ||
10 | |||
11 | ============================================================================== | ||
12 | OVERVIEW *better-text-objs-overview* | ||
13 | |||
14 | Pair |better-text-objs-pair| | ||
15 | Line |better-text-objs-line| | ||
16 | Number |better-text-objs-number| | ||
17 | Buffer |better-text-objs-buffer| | ||
18 | Indent |better-text-objs-indent| | ||
19 | |||
20 | ============================================================================== | ||
21 | PAIR *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 | |||
26 | Text objects in and around any two matching pairs of characters on the same | ||
27 | line. | ||
28 | |||
29 | ============================================================================== | ||
30 | LINE *better-text-objs-line* | ||
31 | |||
32 | `il al` | ||
33 | |||
34 | Text objects to represent in and around the current line. | ||
35 | |||
36 | ============================================================================== | ||
37 | NUMBER *better-text-objs-number* | ||
38 | |||
39 | `in an` | ||
40 | |||
41 | Text objects in and around a number (if present) under the cursor. | ||
42 | |||
43 | ============================================================================== | ||
44 | BUFFER *better-text-objs-number* | ||
45 | |||
46 | `i% a%` | ||
47 | |||
48 | Text objects representing the active buffer, `i%` excludes the first and last | ||
49 | lines of the buffer, `a%` includes all lines of the buffer. | ||
50 | |||
51 | ============================================================================== | ||
52 | INDENT *better-text-objs-number* | ||
53 | |||
54 | `ii ai` | ||
55 | |||
56 | Text objects to represent the text at the same indent level, useful for indent | ||
57 | based programming languages, such as Python or Haskell. `ii` includes only | ||
58 | text at the same indent level, `ai` includes one line before and one line | ||
59 | after the current indent level. | ||
60 | |||
61 | ------------------------------------------------------------------------------ | ||
62 | vim:tw=78:ts=8:ft=help:norl: | ||