Une page dans votre Wiki a été ajoutée ou modifiée. Voici les
détails :
Date : 2006/10/26 16:16
Navigateur : Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.8.0.7) Gecko/20060830 Firefox/1.5.0.7 (Debian-1.5.dfsg+1.5.0.7-2)
Adresse IP : 195.5.211.234
Nom d'hôte : aragorn.arseo.com
Ancienne révision : none
Nouvelle révision : http://cli.asyd.net/home/outils/vim/configuration
Résumé : créée
Utilisateur : kwisatz
Voici mon fichier de configuration ~/.vimrc commenté :
<code>
" .vimrc
" Stéphane (kwisatz) Jourdois
" Toujours activer le syntax highlightning
syntax on
" Montrer les commandes en cours dans la ligne de statut
set showcmd
" Quand le curseur est positionné sur une parenthèse, crochet, accolade, etc.,
" mettre en surbrillance la parenthèse (etc.) correspondante
set showmatch
" Ignorer la casse par défaut dans les recherches
set ignorecase
" Commencer la recherche immédiatement, sans attendre la fin de l'entrée du
" pattern
set incsearch
" Mettre en valeur toutes les occurences de la dernière recherche dans le
" buffer d'édition courant
set hlsearch
" Sauver automatiquement le buffer d'édition avant les commandes du type :next
" ou :make
set autowrite
" Options spécifique à la syntaxe html :
" Coloriser le html dans les chaines php
let php_htmlInStrings=1
" Coloriser le SQL dans les chaines php
let php_sql_query=1
" Nombre de lignes maximum contenant des commandes spécifiques vim dans les
" fichiers édités. Limiter le nombre de lignes limite aussi le risque de
" sécurité de cette option.
set modelines=5
" Transparent editing of gpg encrypted files.
" By Wouter Hanegraaff
augroup encrypted
au!
" First make sure nothing is written to ~/.viminfo while editing
" an encrypted file.
autocmd BufReadPre,FileReadPre *.gpg set viminfo=
" We don't want a swap file, as it writes unencrypted data to disk
autocmd BufReadPre,FileReadPre *.gpg set noswapfile
" Switch to binary mode to read the encrypted file
autocmd BufReadPre,FileReadPre *.gpg set bin
autocmd BufReadPre,FileReadPre *.gpg let ch_save = &ch|set ch=2
autocmd BufReadPost,FileReadPost *.gpg '[,']!gpg --decrypt 2> /dev/null
" Switch to normal mode for editing
autocmd BufReadPost,FileReadPost *.gpg set nobin
autocmd BufReadPost,FileReadPost *.gpg let &ch = ch_save|unlet ch_save
autocmd BufReadPost,FileReadPost *.gpg execute ":doautocmd BufReadPost " . expand("%:r")
" Convert all text to encrypted text before writing
autocmd BufWritePre,FileWritePre *.gpg '[,']!gpg --default-recipient-self -ae 2>/dev/null
" Undo the encryption so we are back in the normal text, directly
" after the file has been written.
autocmd BufWritePost,FileWritePost *.gpg u
augroup END
</code>
(kwisatz)
--
Ce message a été généré par DokuWiki
http://cli.asyd.net/home/