-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvim-objects.notes
More file actions
43 lines (31 loc) · 932 Bytes
/
vim-objects.notes
File metadata and controls
43 lines (31 loc) · 932 Bytes
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
Text objects
----
aw - a word (includes surronding whitespace)
iw - inner word (does not include surronding whitespace)
as - a sentence
is - inner sentence
ap - a paragraph
ip - inner paragraph
{ - before the beggining of paragraph
} - after the end of paragraph
( - in the beggining of paragraph
) - after the end of paragraph
a) - a parenthesized block
i) - inner parenthesized block
* - works for () {} [] '' "" etc
ab - a block ?!?
ib - inner block ?!?
aB - a block ?!?
iB - inner block ?!?
at - a tag block (for markup languages)
it - inner tag block (for markup languages)
a< - a single tag (for markup languages)
i< - inner single tag (for markup languages)
<div> this is div <div>
<a> this is div <a>
additional scripts
----
https://github.com/bkad/CamelCaseMotion
https://github.com/vim-scripts/argtextobj.vim
https://github.com/michaeljsmith/vim-indent-object
https://github.com/nelstrom/vim-textobj-rubyblock