1 <span class="co0"># show line numbers</span>
2 <span class="kw1">set</span> number
3 <span class="co0"># incremental search</span>
4 <span class="kw1">set</span> incsearch
5 <span class="co0"># auto indentation</span>
6 <span class="kw1">set</span> autoindent
7 <span class="co0"># tab size</span>
8 <span class="kw1">set</span> <span class="re2">tabstop</span>=<span class="nu0">2</span>
9 <span class="co0"># indentation size (used on auto indentation)</span>
10 <span class="kw1">set</span> <span class="re2">shiftwidth</span>=<span class="nu0">2</span>
11 <span class="co0"># unindent on the end of blocks (e.g. '}' on c)</span>
12 <span class="kw1">set</span> smartindent
13 <span class="co0"># save with CTRL-S</span>
14 map<span class="sy0">!</span> <span class="sy0"><</span>C-s<span class="sy0">></span> <span class="sy0"><</span>Esc<span class="sy0">></span>:<span class="kw2">w</span><span class="sy0"><</span>CR<span class="sy0">></span>
15 map <span class="sy0"><</span>C-s<span class="sy0">></span> <span class="sy0"><</span>Esc<span class="sy0">></span>:<span class="kw2">w</span><span class="sy0"><</span>CR<span class="sy0">></span>
16 <span class="co0"># call make with F9</span>
17 map<span class="sy0">!</span> <span class="sy0"><</span>F9<span class="sy0">></span> <span class="sy0"><</span>C-g<span class="sy0">></span>u<span class="sy0"><</span>Esc<span class="sy0">></span>:<span class="kw2">w</span><span class="sy0"><</span>CR<span class="sy0">></span>ggdG<span class="sy0">!!</span><span class="kw2">make</span><span class="sy0"><</span>CR<span class="sy0">></span>
18 map <span class="sy0"><</span>F9<span class="sy0">></span> <span class="sy0"><</span>C-g<span class="sy0">></span>u<span class="sy0"><</span>Esc<span class="sy0">></span>:<span class="kw2">w</span><span class="sy0"><</span>CR<span class="sy0">></span>ggdG<span class="sy0">!!</span><span class="kw2">make</span><span class="sy0"><</span>CR<span class="sy0">></span>