Another .vimrc file

mais pour Windows, cette fois

Etant un inconditionnel de gvim sous winXP, je poste ici mon fichier de configuration pour rentre ce superbe outil plus pratique.

<head> <title>C:\Program Files\Vim\_vimrc.html</title> <meta name="Generator" content="Vim/7.2"> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#ffffff" text="#000000"><font face="monospace"> <font color="#0000ff">&quot; desactive le mode compatibilte avec vi</font><br> <font color="#804040"><b>set</b></font>&nbsp;<font color="#a020f0">nocompatible</font><br> <br> <font color="#0000ff">&quot; historique des commandes</font><br> <font color="#804040"><b>set</b></font>&nbsp;<font color="#a020f0">history</font>=150<br> <br> <font color="#0000ff">&quot; undo, pour revenir en arrière</font><br> <font color="#804040"><b>set</b></font>&nbsp;<font color="#a020f0">undolevels</font>=150<br> <br> <font color="#0000ff">&quot;hauteur de la fenetre</font><br> <font color="#804040"><b>set</b></font>&nbsp;<font color="#a020f0">lines</font>=50<br> <br> <font color="#0000ff">&quot;largeur de la fenetre</font><br> <font color="#804040"><b>set</b></font>&nbsp;<font color="#a020f0">columns</font>=120<br> <br> <font color="#0000ff">&quot; active le backup des fichiers &lt;file~&gt;</font><br> <font color="#804040"><b>set</b></font>&nbsp;<font color="#a020f0">backup</font><br> <br> <font color="#0000ff">&quot; et les places dans un repertoire particulier</font><br> <font color="#804040"><b>set</b></font>&nbsp;<font color="#a020f0">backupdir</font>=D<font color="#804040"><b>:</b></font>\\DONNEES\\vimbackup<br> <br> <font color="#804040"><b>set</b></font>&nbsp;<font color="#a020f0">ruler</font><br> <br> <font color="#804040"><b>set</b></font>&nbsp;<font color="#a020f0">showcmd</font><br> <br> <font color="#804040"><b>set</b></font>&nbsp;<font color="#a020f0">incsearch</font><br> <br> <font color="#804040"><b>set</b></font>&nbsp;<font color="#a020f0">showmatch</font><br> <br> <font color="#804040"><b>set</b></font>&nbsp;<font color="#a020f0">matchtime</font>=2<br> <br> <font color="#804040"><b>set</b></font>&nbsp;<font color="#a020f0">laststatus</font>=2<br> <br> <font color="#804040"><b>set</b></font>&nbsp;<font color="#a020f0">guifont</font>=Courier<font color="#804040"><b>:</b></font>h10<font color="#804040"><b>:</b></font>cANSI<br> <br> <font color="#0000ff">&quot; Désactiver le highlight (lors d'une recherche par exemple)</font><br> <font color="#804040"><b>map</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">F2</font><font color="#6a5acd">&gt;</font>&nbsp;:let @/=&quot;&quot;<font color="#6a5acd">&lt;</font><font color="#6a5acd">cr</font><font color="#6a5acd">&gt;</font><br> <br> <font color="#0000ff">&quot; aucun son</font><br> <font color="#804040"><b>set</b></font>&nbsp;<font color="#a020f0">errorbells</font><br> <font color="#804040"><b>set</b></font>&nbsp;<font color="#a020f0">novisualbell</font><br> <font color="#804040"><b>set</b></font>&nbsp;<font color="#a020f0">t_vb</font>=<br> <br> <font color="#804040"><b>set</b></font>&nbsp;<font color="#a020f0">hlsearch</font><br> <br> <font color="#0000ff">&quot;accelere vim</font><br> <font color="#804040"><b>set</b></font>&nbsp;<font color="#a020f0">ttyfast</font><br> <br> <font color="#0000ff">&quot;active la souris</font><br> <font color="#804040"><b>if</b></font>&nbsp;<font color="#008080">has</font><font color="#804040"><b>(</b></font><font color="#ff00ff">'mouse'</font><font color="#804040"><b>)</b></font><br> &nbsp;&nbsp;<font color="#804040"><b>set</b></font>&nbsp;<font color="#a020f0">mouse</font>=a<br> <font color="#804040"><b>endif</b></font><br> <br> <font color="#0000ff">&quot; coloration syntaxique</font><br> <font color="#804040"><b>syntax</b></font>&nbsp;<font color="#2e8b57"><b>on</b></font><br> <br> <font color="#0000ff">&quot; tab automatique</font><br> <font color="#804040"><b>set</b></font>&nbsp;<font color="#a020f0">autoindent</font><br> <br> <font color="#0000ff">&quot; numerotation des lignes</font><br> <font color="#804040"><b>set</b></font>&nbsp;<font color="#a020f0">nu</font><br> <br> <font color="#0000ff">&quot; backspace and cursor keys wrap to previous/next line</font><br> <font color="#804040"><b>set</b></font>&nbsp;<font color="#a020f0">backspace</font>=indent<font color="#804040"><b>,</b></font>eol<font color="#804040"><b>,</b></font>start&nbsp;<font color="#a020f0">whichwrap</font>+=<font color="#6a5acd">&lt;</font><font color="#6a5acd">,</font><font color="#6a5acd">&gt;</font><font color="#804040"><b>,</b></font>[<font color="#804040"><b>,</b></font>]<br> <br> <br> <font color="#0000ff">&quot; Convenient command to see the difference between the current buffer and the</font><br> <font color="#0000ff">&quot; file it was loaded from, thus the changes you made.</font><br> <font color="#0000ff">&quot; Only define it when not defined already.</font><br> <font color="#804040"><b>if</b></font>&nbsp;!<font color="#008080">exists</font><font color="#804040"><b>(</b></font><font color="#ff00ff">&quot;:DiffOrig&quot;</font><font color="#804040"><b>)</b></font><br> &nbsp;&nbsp;<font color="#804040"><b>command</b></font>&nbsp;DiffOrig&nbsp;<font color="#804040"><b>vert</b></font>&nbsp;<font color="#804040"><b>new</b></font>&nbsp;| <font color="#804040"><b>set</b></font>&nbsp;<font color="#a020f0">bt</font>=nofile&nbsp;| r # | 0d_ | diffthis<br> <font color="#6a5acd">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\</font>&nbsp;|&nbsp;<font color="#804040"><b>wincmd</b></font>&nbsp;<font color="#804040"><b>p</b></font>&nbsp;|&nbsp;<font color="#804040"><b>diffthis</b></font><br> <font color="#804040"><b>endif</b></font><br> <br> <font color="#0000ff">&quot; Aller dans le répertoire du fichier édité.</font><br> <font color="#804040"><b>autocmd</b></font>&nbsp;<font color="#2e8b57"><b>BufEnter</b></font>&nbsp;*&nbsp;<font color="#804040"><b>lcd</b></font>&nbsp;<font color="#008080">%</font><font color="#008080">:p:h</font><br> <br> <br> <br> <font color="#0000ff">&quot; ------------- FONCTION VIM WINDOWS ---------------</font><br> <br> <font color="#0000ff">&quot; Set options and add mapping such that Vim behaves a lot like MS-Windows</font><br> <font color="#0000ff">&quot;</font><br> <font color="#0000ff">&quot;</font>&nbsp;<font color="#a020f0">Maintainer:</font><font color="#0000ff">&nbsp;&nbsp; Bram Moolenaar &lt;Bram@vim.org&gt;</font><br> <font color="#0000ff">&quot; Last change:&nbsp;&nbsp;2006 Apr 02</font><br> <br> <font color="#0000ff">&quot; bail out if this isn't wanted (mrsvim.vim uses this).</font><br> <font color="#804040"><b>if</b></font>&nbsp;<font color="#008080">exists</font><font color="#804040"><b>(</b></font><font color="#ff00ff">&quot;g:skip_loading_mswin&quot;</font><font color="#804040"><b>)</b></font>&nbsp;<font color="#804040"><b>&amp;&amp;</b></font>&nbsp;g:skip_loading_mswin<br> &nbsp;&nbsp;<font color="#804040"><b>finish</b></font><br> <font color="#804040"><b>endif</b></font><br> <br> <font color="#0000ff">&quot; set the 'cpoptions' to its Vim default</font><br> <font color="#804040"><b>if</b></font>&nbsp;<font color="#ff00ff">1</font>&nbsp;&nbsp;&nbsp;&nbsp;<font color="#0000ff">&quot; only do this when compiled with expression evaluation</font><br> &nbsp;&nbsp;<font color="#804040"><b>let</b></font>&nbsp;s:save_cpo&nbsp;<font color="#804040"><b>=</b></font>&nbsp;&amp;cpoptions<br> <font color="#804040"><b>endif</b></font><br> <font color="#804040"><b>set</b></font>&nbsp;<font color="#a020f0">cpo</font><font color="#a020f0">&amp;vim</font><br> <br> <font color="#0000ff">&quot; set 'selection', 'selectmode', 'mousemodel' and 'keymodel' for MS-Windows</font><br> <font color="#804040"><b>behave</b></font>&nbsp;<font color="#804040"><b>mswin</b></font><br> <br> <font color="#0000ff">&quot; backspace and cursor keys wrap to previous/next line</font><br> <font color="#804040"><b>set</b></font>&nbsp;<font color="#a020f0">backspace</font>=indent<font color="#804040"><b>,</b></font>eol<font color="#804040"><b>,</b></font>start&nbsp;<font color="#a020f0">whichwrap</font>+=<font color="#6a5acd">&lt;</font><font color="#6a5acd">,</font><font color="#6a5acd">&gt;</font><font color="#804040"><b>,</b></font>[<font color="#804040"><b>,</b></font>]<br> <br> <font color="#0000ff">&quot; backspace in Visual mode deletes selection</font><br> <font color="#804040"><b>vnoremap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">BS</font><font color="#6a5acd">&gt;</font>&nbsp;d<br> <br> <font color="#0000ff">&quot; CTRL-X and SHIFT-Del are Cut</font><br> <font color="#804040"><b>vnoremap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-X</font><font color="#6a5acd">&gt;</font>&nbsp;&quot;+x<br> <font color="#804040"><b>vnoremap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">S-Del</font><font color="#6a5acd">&gt;</font>&nbsp;&quot;+x<br> <br> <font color="#0000ff">&quot; CTRL-C and CTRL-Insert are Copy</font><br> <font color="#804040"><b>vnoremap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-C</font><font color="#6a5acd">&gt;</font>&nbsp;&quot;+y<br> <font color="#804040"><b>vnoremap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-Insert</font><font color="#6a5acd">&gt;</font>&nbsp;&quot;+y<br> <br> <font color="#0000ff">&quot; CTRL-V and SHIFT-Insert are Paste</font><br> <font color="#804040"><b>map</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-V</font><font color="#6a5acd">&gt;</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;+gP<br> <font color="#804040"><b>map</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">S-Insert</font><font color="#6a5acd">&gt;</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;+gP<br> <br> <font color="#804040"><b>cmap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-V</font><font color="#6a5acd">&gt;</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-R</font><font color="#6a5acd">&gt;</font>+<br> <font color="#804040"><b>cmap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">S-Insert</font><font color="#6a5acd">&gt;</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#6a5acd">&lt;</font><font color="#6a5acd">C-R</font><font color="#6a5acd">&gt;</font>+<br> <br> <font color="#0000ff">&quot; Pasting blockwise and linewise selections is not possible in Insert and</font><br> <font color="#0000ff">&quot; Visual mode without the +virtualedit feature.&nbsp;&nbsp;They are pasted as if they</font><br> <font color="#0000ff">&quot; were characterwise instead.</font><br> <font color="#0000ff">&quot; Uses the paste.vim autoload script.</font><br> <br> <font color="#804040"><b>exe</b></font>&nbsp;<font color="#ff00ff">'inoremap &lt;script&gt; &lt;C-V&gt;'</font>&nbsp;paste#paste_cmd[<font color="#ff00ff">'i'</font>]<br> <font color="#804040"><b>exe</b></font>&nbsp;<font color="#ff00ff">'vnoremap &lt;script&gt; &lt;C-V&gt;'</font>&nbsp;paste#paste_cmd[<font color="#ff00ff">'v'</font>]<br> <br> <font color="#804040"><b>imap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">S-Insert</font><font color="#6a5acd">&gt;</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#6a5acd">&lt;</font><font color="#6a5acd">C-V</font><font color="#6a5acd">&gt;</font><br> <font color="#804040"><b>vmap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">S-Insert</font><font color="#6a5acd">&gt;</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#6a5acd">&lt;</font><font color="#6a5acd">C-V</font><font color="#6a5acd">&gt;</font><br> <br> <font color="#0000ff">&quot; Use CTRL-Q to do what CTRL-V used to do</font><br> <font color="#804040"><b>noremap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-Q</font><font color="#6a5acd">&gt;</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#6a5acd">&lt;</font><font color="#6a5acd">C-V</font><font color="#6a5acd">&gt;</font><br> <br> <font color="#0000ff">&quot; Use CTRL-S for saving, also in Insert mode</font><br> <font color="#804040"><b>noremap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-S</font><font color="#6a5acd">&gt;</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :update<font color="#6a5acd">&lt;</font><font color="#6a5acd">CR</font><font color="#6a5acd">&gt;</font><br> <font color="#804040"><b>vnoremap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-S</font><font color="#6a5acd">&gt;</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-C</font><font color="#6a5acd">&gt;</font>:update<font color="#6a5acd">&lt;</font><font color="#6a5acd">CR</font><font color="#6a5acd">&gt;</font><br> <font color="#804040"><b>inoremap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-S</font><font color="#6a5acd">&gt;</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-O</font><font color="#6a5acd">&gt;</font>:update<font color="#6a5acd">&lt;</font><font color="#6a5acd">CR</font><font color="#6a5acd">&gt;</font><br> <br> <font color="#0000ff">&quot; For CTRL-V to work autoselect must be off.</font><br> <font color="#0000ff">&quot; On Unix we have two selections, autoselect can be used.</font><br> <font color="#804040"><b>if</b></font>&nbsp;!<font color="#008080">has</font><font color="#804040"><b>(</b></font><font color="#ff00ff">&quot;unix&quot;</font><font color="#804040"><b>)</b></font><br> &nbsp;&nbsp;<font color="#804040"><b>set</b></font>&nbsp;<font color="#a020f0">guioptions</font>-=a<br> <font color="#804040"><b>endif</b></font><br> <br> <font color="#0000ff">&quot; CTRL-Z is Undo; not in cmdline though</font><br> <font color="#804040"><b>noremap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-Z</font><font color="#6a5acd">&gt;</font>&nbsp;u<br> <font color="#804040"><b>inoremap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-Z</font><font color="#6a5acd">&gt;</font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-O</font><font color="#6a5acd">&gt;</font>u<br> <br> <font color="#0000ff">&quot; CTRL-Y is Redo (although not repeat); not in cmdline though</font><br> <font color="#804040"><b>noremap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-Y</font><font color="#6a5acd">&gt;</font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-R</font><font color="#6a5acd">&gt;</font><br> <font color="#804040"><b>inoremap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-Y</font><font color="#6a5acd">&gt;</font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-O</font><font color="#6a5acd">&gt;&lt;</font><font color="#6a5acd">C-R</font><font color="#6a5acd">&gt;</font><br> <br> <font color="#0000ff">&quot; Alt-Space is System menu</font><br> <font color="#804040"><b>if</b></font>&nbsp;<font color="#008080">has</font><font color="#804040"><b>(</b></font><font color="#ff00ff">&quot;gui&quot;</font><font color="#804040"><b>)</b></font><br> &nbsp;&nbsp;<font color="#804040"><b>noremap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">M-Space</font><font color="#6a5acd">&gt;</font>&nbsp;:simalt ~<font color="#6a5acd">&lt;</font><font color="#6a5acd">CR</font><font color="#6a5acd">&gt;</font><br> &nbsp;&nbsp;<font color="#804040"><b>inoremap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">M-Space</font><font color="#6a5acd">&gt;</font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-O</font><font color="#6a5acd">&gt;</font>:simalt ~<font color="#6a5acd">&lt;</font><font color="#6a5acd">CR</font><font color="#6a5acd">&gt;</font><br> &nbsp;&nbsp;<font color="#804040"><b>cnoremap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">M-Space</font><font color="#6a5acd">&gt;</font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-C</font><font color="#6a5acd">&gt;</font>:simalt ~<font color="#6a5acd">&lt;</font><font color="#6a5acd">CR</font><font color="#6a5acd">&gt;</font><br> <font color="#804040"><b>endif</b></font><br> <br> <font color="#0000ff">&quot; CTRL-A is Select all</font><br> <font color="#804040"><b>noremap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-A</font><font color="#6a5acd">&gt;</font>&nbsp;gggH<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-O</font><font color="#6a5acd">&gt;</font>G<br> <font color="#804040"><b>inoremap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-A</font><font color="#6a5acd">&gt;</font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-O</font><font color="#6a5acd">&gt;</font>gg<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-O</font><font color="#6a5acd">&gt;</font>gH<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-O</font><font color="#6a5acd">&gt;</font>G<br> <font color="#804040"><b>cnoremap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-A</font><font color="#6a5acd">&gt;</font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-C</font><font color="#6a5acd">&gt;</font>gggH<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-O</font><font color="#6a5acd">&gt;</font>G<br> <font color="#804040"><b>onoremap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-A</font><font color="#6a5acd">&gt;</font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-C</font><font color="#6a5acd">&gt;</font>gggH<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-O</font><font color="#6a5acd">&gt;</font>G<br> <font color="#804040"><b>snoremap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-A</font><font color="#6a5acd">&gt;</font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-C</font><font color="#6a5acd">&gt;</font>gggH<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-O</font><font color="#6a5acd">&gt;</font>G<br> <font color="#804040"><b>xnoremap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-A</font><font color="#6a5acd">&gt;</font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-C</font><font color="#6a5acd">&gt;</font>ggVG<br> <br> <font color="#0000ff">&quot; CTRL-Tab is Next window</font><br> <font color="#804040"><b>noremap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-Tab</font><font color="#6a5acd">&gt;</font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-W</font><font color="#6a5acd">&gt;</font>w<br> <font color="#804040"><b>inoremap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-Tab</font><font color="#6a5acd">&gt;</font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-O</font><font color="#6a5acd">&gt;&lt;</font><font color="#6a5acd">C-W</font><font color="#6a5acd">&gt;</font>w<br> <font color="#804040"><b>cnoremap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-Tab</font><font color="#6a5acd">&gt;</font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-C</font><font color="#6a5acd">&gt;&lt;</font><font color="#6a5acd">C-W</font><font color="#6a5acd">&gt;</font>w<br> <font color="#804040"><b>onoremap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-Tab</font><font color="#6a5acd">&gt;</font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-C</font><font color="#6a5acd">&gt;&lt;</font><font color="#6a5acd">C-W</font><font color="#6a5acd">&gt;</font>w<br> <br> <font color="#0000ff">&quot; CTRL-F4 is Close window</font><br> <font color="#804040"><b>noremap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-F4</font><font color="#6a5acd">&gt;</font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-W</font><font color="#6a5acd">&gt;</font>c<br> <font color="#804040"><b>inoremap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-F4</font><font color="#6a5acd">&gt;</font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-O</font><font color="#6a5acd">&gt;&lt;</font><font color="#6a5acd">C-W</font><font color="#6a5acd">&gt;</font>c<br> <font color="#804040"><b>cnoremap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-F4</font><font color="#6a5acd">&gt;</font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-C</font><font color="#6a5acd">&gt;&lt;</font><font color="#6a5acd">C-W</font><font color="#6a5acd">&gt;</font>c<br> <font color="#804040"><b>onoremap</b></font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-F4</font><font color="#6a5acd">&gt;</font>&nbsp;<font color="#6a5acd">&lt;</font><font color="#6a5acd">C-C</font><font color="#6a5acd">&gt;&lt;</font><font color="#6a5acd">C-W</font><font color="#6a5acd">&gt;</font>c<br> <br> <font color="#0000ff">&quot; restore 'cpoptions'</font><br> <font color="#804040"><b>set</b></font>&nbsp;<font color="#a020f0">cpo</font><font color="#a020f0">&amp;</font><br> <font color="#804040"><b>if</b></font>&nbsp;<font color="#ff00ff">1</font><br> &nbsp;&nbsp;<font color="#804040"><b>let</b></font>&nbsp;&amp;cpoptions&nbsp;<font color="#804040"><b>=</b></font>&nbsp;s:save_cpo<br> &nbsp;&nbsp;<font color="#804040"><b>unlet</b></font>&nbsp;s:save_cpo<br> <font color="#804040"><b>endif</b></font><br> <br> </font></body>

~~DISCUSSION~~~~DISCUSSION~~

fr/ressources/astuces/vimrc.txt · Last modified: 2011/03/16 01:41 (external edit)
CC Attribution-Noncommercial-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0