maio
[h2N7SspZmY.git] / data / cache / d / d2abc097c9b3d03a2e8e01436d91defc.code
blobf646f31805fb3eb7774623236a335056fccc2f97
1 <span class="co1">&quot; show line numbers</span>
2 set number 
3 <span class="co1">&quot; incremental search</span>
4 set incsearch
5 <span class="co1">&quot; auto indentation</span>
6 set autoindent
7 <span class="co1">&quot; tab size</span>
8 set tabstop=<span class="nu0">2</span>
9 <span class="co1">&quot; indentation size (used on auto indentation)</span>
10 set shiftwidth=<span class="nu0">2</span>
11 <span class="co1">&quot; smart indentation (indent beginning of blocks (e.g. '{') and unnindent ending of blocks (e.g. '}'))</span>
12 set smartindent
13 <span class="co1">&quot; save with Ctrl+S</span>
14         <span class="kw3">map</span><span class="sy0">!</span> <span class="sy0">&lt;</span>C<span class="sy0">-</span>s<span class="sy0">&gt;</span> <span class="sy0">&lt;</span>Esc<span class="sy0">&gt;:</span>w<span class="sy0">&lt;</span>CR<span class="sy0">&gt;</span>
15         <span class="kw3">map</span>  <span class="sy0">&lt;</span>C<span class="sy0">-</span>s<span class="sy0">&gt;</span> <span class="sy0">&lt;</span>Esc<span class="sy0">&gt;:</span>w<span class="sy0">&lt;</span>CR<span class="sy0">&gt;</span>
16 <span class="co1">&quot; call make with F9</span>
17         <span class="kw3">map</span><span class="sy0">!</span> <span class="sy0">&lt;</span>F9<span class="sy0">&gt;</span> <span class="sy0">&lt;</span>Esc<span class="sy0">&gt;:</span>make<span class="sy0">&lt;</span>CR<span class="sy0">&gt;&lt;</span>CR<span class="sy0">&gt;</span>
18         <span class="kw3">map</span>  <span class="sy0">&lt;</span>F9<span class="sy0">&gt;</span> <span class="sy0">&lt;</span>Esc<span class="sy0">&gt;:</span>make<span class="sy0">&lt;</span>CR<span class="sy0">&gt;&lt;</span>CR<span class="sy0">&gt;</span>
19 <span class="co1">&quot; auto save files</span>
20 set autowrite
21 set autowriteall
22 <span class="co1">&quot; abreviations</span>
23         iab #i #include
24         iab #d #define
25 <span class="co1">&quot; reload file automatically when it changes</span>
26 set autoread