mon .elvisrc





Sur Slackware, quand je tape "vi", j'ai choisi de démarrer Elvis, brillant clone de Vi dix fois moins lourd que Vim qui l'a détrôné. Elvis démarre donc sensiblement plus vite que Vim, et en mode 'insertion', il accepte nativement la fonction "coller" avec la pression de la molette de la souris ou avec la combinaison de touches "Shift-Inser". Son affichage de la syntaxe des codages (:display syntax) n'est pas automatique, ce pourquoi j'ai créé un alias 'vis' dans mon bashrc. Sa coloration syntaxique, ainsi que sa capacité de coder à la volée le HTML en UTF-8, nécessitent un fichier de configuration non fourni avec le paquet officiel :





color normal white
color idle green
color bottom green
color lnum gray
color showmode gray
color ruler gray
color selection boxed magenta
color hlsearch boxed white
color hlobject boxed white
color spell boxed white
color fold yellow
color header white

color comment gray
color string light blue
color char light blue
color regexp like string
color regsub like string
color number light white
color other light red
color keyword light magenta
color function cyan
color variable green
color prep light magenta
color prepquote light blue
color doc white
color docmarkup white
color docindent white
color kindt like keyword
color libt like keyword

color specialkey yellow
color nontext yellow
color extends yellow

color hexheading red
color hexoffset red
color hexcursor red

color normal white
color idle green
color bottom green
color lnum gray
color showmode gray
color ruler gray
color selection boxed magenta
color hlsearch boxed white
color hlobject boxed white
color spell boxed white
color fold yellow
color header white

color comment gray
color string light blue
color char light blue
color regexp like string
color regsub like string
color number light white
color other light red
color keyword light magenta
color function cyan
color variable green
color prep light magenta
color prepquote light blue
color doc white
color docmarkup white
color docindent white
color kindt like keyword
color libt like keyword

color specialkey yellow
color nontext yellow
color extends yellow

color hexheading red
color hexoffset red
color hexcursor red

map! à à
map! â â
map! ä ä
map! À À
map! Â Â
map! Ä Ä

map! è è
map! é é
map! ê ê
map! ë ë
map! È È
map! É É
map! Ê Ê
map! Ë Ë

map! î î
map! ï ï
map! Î Î
map! Ï Ï

map! ô ô
map! ö ö
map! Ô Ô
map! Ö Ö

map! ù ù
map! û û
map! ü ü
map! Ù Ù
map! Û Û
map! Ü Ü

map! ÿ ÿ

map! ç ç
map! Ç Ç
map! << &#60;
map! >> &#62;
map! [[ &#91;
map! ]] &#93;
map! ° &#176;
map! &n &#160;
map! ' ' &#39;
map! " " &#34;
map! %% &#37;
map! && &#38;
map! &oe œ
map! µ &#181;
map! ¤ €
map! p$ &#94;


# Les 12 lignes suivantes sont dédiées au codage de l'espéranto :

map! :ch &#265;
map! :gh &#285;
map! :hh &#293;
map! :jh &#309;
map! :sh &#349;
map! :Ch &#264;
map! :Gh &#284;
map! :Hh &#292;
map! :Jh &#308;
map! :Sh &#348;
map! :uu &#365;
map! :Uu &#364;

set list        # pour marquer chaque fin de ligne (et éradiquer les espaces vides)
set nu        # pour afficher les numéros de lignes





En tant qu'éditeur de texte élémentaire, elvis n'a besoin ni d'.elvisrc ni d'.exrc.
Ce fichier ne m'est utile que pour coder le HTML (en UTF-8) pour le français et l'espéranto.
Celui-ci -plus lourd- permet d'encoder le français, l'espéranto, et le vietnamien.
Le renommer en .exrc ne produit aucune différence sur le comportement d'Elvis.


mon Linux


accueil