Blog 1

Random Talk on Random Thoughts

My Vim Registers for Quick Text Editing

The registers are for writing math in $\rm \LaTeX$, Octopress posts, HTML, etc.

The list of my Vim macros
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"a   cout << "i: " << i << endl;
"b   \mathbf
"c   \mathcal
"d   \,\mathrm{d}
"e   \exists
"f   \forall
"g   &gt;
"i   é
"j   è
"k   :!clang++ -g % -o %<.out^M
"l   &lt;
"m   <!-- more -->
"s   :%s/std:://g^M
"t   target="_blank"
"x   :!./%<.out^M
"z   $\rm \LaTeX$

Remark: The ^M at the end of registers k and s denote the “carriage return”, which can be input by typing <C-v><C-m> in Vim.

Comments