-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmerge.txt
More file actions
33 lines (32 loc) · 822 Bytes
/
merge.txt
File metadata and controls
33 lines (32 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* VIM MACROS FOR MERGING W/ TWITTER EXPORT
Dump macro in register x to current line: "xp
Put current line back into register x: "xyy
(v) Set the value attribute in the HTML to prev+1
?<lif"lyw/<lillli value=" pa"/<li
(w) Set the value attribute in the HTML to next-1
/<lif"lyw?<linllli value=" pa" ?<lin
(h) Turn line of html to json:
0dt"xf"x:.,.s/"/\\"/ge0i"n": f>xi, "x": " $xxxxxa", 0/<li
(j) Turn html comment to json:
0dt<:.,.s/"/\\"/gei "c": "$a",0/<!--n
(m) Move line of json to matching uvi assuming unique snippet found:
jmzkddnkkpf,lli jdd'z0
(c) Also move the comment down:
jmzkddn/"c":pkJhhdt[xi l~$xxxxxa",'z
(u) Unlinkify a URL (get rid of a-href) from opening '<':
dth.f\dt>.x
(s) Remove <strong> tags and say "f":true instead:
0/<strong>dt>x/<\/strong>dt>x0O"f": true,j0
*/