-
Notifications
You must be signed in to change notification settings - Fork 0
/
macros.vim
43 lines (30 loc) · 1.03 KB
/
macros.vim
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
"a: make a link to function that's also documented around visual selected
let @a = 's<a href="#pa">pa</a>'
"z: make an external link around visual selected (from + register)
let @z = 's<a href=""+pa">pa</a>'
"r: add remarks on next line (from + register)
let @r = 'o/// <remarks>"+pa</remarks>'
"c: surround visual selected with bold code tags
let @c = 's<b><c><.€kb/c></b>hhhhhhhP'
"b: surround visual selected with bold tags
let @b = 's<b></b>hhhP'
"s: surround '..added in <version> and will not..' using b macro
let @s = '/added inwwv/andhh@b'
"v: paste remark and set samp version in bold (@r and @s)
let @v = '@r0@s'
"p: apply macro @c to a 0 and 1 on this line
let @p = '0/1@c0/0@c'
"o: apply macro @c to a true and false on this line
let @o = '0/trueve@c0/falseve@c'
"i: quick returns
let @i = 'I/// <returns>1 if $a, 0 if not.</returns>@p'
"g: quick return format and codify when it's 0 and 1 on two lines
let @g = '0jwjI llj@c'
"m: surround visual selected with paramref
let @m = 's<paramref name=""/>hhP'