maio
[h2N7SspZmY.git] / data / cache / f / fc15e23a12db7ec8bd0f6c8328abe282.code
blob72c80e44a21dbd363b0b52d6160c953ec724e055
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
27 <span class="co1">&quot; call make -B with F8</span>
28         <span class="kw3">map</span><span class="sy0">!</span> <span class="sy0">&lt;</span>F8<span class="sy0">&gt;</span> <span class="sy0">&lt;</span>Esc<span class="sy0">&gt;:</span>make <span class="sy0">-</span>B<span class="sy0">&lt;</span>CR<span class="sy0">&gt;&lt;</span>CR<span class="sy0">&gt;</span>
29         <span class="kw3">map</span>  <span class="sy0">&lt;</span>F8<span class="sy0">&gt;</span> <span class="sy0">&lt;</span>Esc<span class="sy0">&gt;:</span>make <span class="sy0">-</span>B<span class="sy0">&lt;</span>CR<span class="sy0">&gt;&lt;</span>CR<span class="sy0">&gt;</span>