Le jeu de couleur "desert" est déjà inclut dans le paquet "vim-colorsamplerpack", je te conseille d'installer d'aussi "vim-guicolorscheme", il existe d'ailleurs une variante 256 couleurs : "desert256". Pour tester tu peux le faire directement dans une fenêtre (g)vim avec la commande ":colorscheme" avec auto-complétion des couleurs dispos.
Le "vimrc" que j'utilise si ça peut aider (je ne sais plus où je l'ai chipé, je l'ai un peu modifié) :
Code : Tout sélectionner
syntax on
filetype on
filetype plugin on
filetype indent on
set term=builtin_ansi
" .vimrc
" See: http://vimdoc.sourceforge.net/htmldoc/options.html for details
" For multi-byte character support (CJK support, for example):
"set fileencodings=ucs-bom,utf-8,cp936,big5,euc-jp,euc-kr,gb18030,latin1
set fileencoding=utf-8
set tabstop=4 " Number of spaces that a <Tab> in the file counts for.
set shiftwidth=4 " Number of spaces to use for each step of (auto)indent.
set expandtab " Use the appropriate number of spaces to insert a <Tab>.
" Spaces are used in indents with the '>' and '<' commands
" and when 'autoindent' is on. To insert a real tab when
" 'expandtab' is on, use CTRL-V <Tab>.
set smarttab " When on, a <Tab> in front of a line inserts blanks
" according to 'shiftwidth'. 'tabstop' is used in other
" places. A <BS> will delete a 'shiftwidth' worth of space
" at the start of the line.
set showcmd " Show (partial) command in status line.
set showmatch " When a bracket is inserted, briefly jump to the matching
" one. The jump is only done if the match can be seen on the
" screen. The time to show the match can be set with
" 'matchtime'.
set hlsearch " When there is a previous search pattern, highlight all
" its matches.
set incsearch " While typing a search command, show immediately where the
" so far typed pattern matches.
set ignorecase " Ignore case in search patterns.
set smartcase " Override the 'ignorecase' option if the search pattern
" contains upper case characters.
set backspace=indent,eol,start " Influences the working of <BS>, <Del>, CTRL-W
" and CTRL-U in Insert mode. This is a list of items,
" separated by commas. Each item allows a way to backspace
" over something.
set autoindent " Copy indent from current line when starting a new line
" (typing <CR> in Insert mode or when using the "o" or "O"
" command).
set smartindent " Do smart autoindenting when starting a new line. Works
" for C-like programs, but can also be used for other
" languages.
set textwidth=80 " Maximum width of text that is being inserted. A longer
" line will be broken after white space to get this width.
set formatoptions=c,q,r,t " This is a sequence of letters which describes how
" automatic formatting is to be done.
"
" letter meaning when present in 'formatoptions'
" ------ ---------------------------------------
" c Auto-wrap comments using textwidth, inserting
" the current comment leader automatically.
" q Allow formatting of comments with "gq".
" r Automatically insert the current comment leader
" after hitting <Enter> in Insert mode.
" t Auto-wrap text using textwidth (does not apply
" to comments)
set ruler " Show the line and column number of the cursor position,
" separated by a comma.
set background=dark " When set to "dark", Vim will try to use colors that look
" good on a dark background. When set to "light", Vim will
" try to use colors that look good on a light background.
" Any other value is illegal.
set mouse=a " Enable the use of the mouse.
set fileformats=unix,dos " Permet de lire les fichiers dos sans devoir les reconvertir en "unix" en cas de partages sur os win$.
set wrapscan " set the search scan to wrap lines
set ch=2 " Make command line two lines high
set lbr " lorsque vim doit sauter à la ligne, le faire au mot près et non au caractère pour une meilleure lisibilité
" (uniquement pour l'affichage, pas de formatage)
set nu " numérotation des lignes
"-----------------------------------------------------------------------------
"" Fix constant spelling mistakes
"-----------------------------------------------------------------------------
"
iab teh the
iab Teh The
iab taht that
iab Taht That
iab alos also
iab Alos Also
iab aslo also
iab Aslo Also
iab becuase because
iab Becuase Because
iab bianry binary
iab Bianry Binary
iab bianries binaries
iab Bianries Binaries
iab charcter character
iab Charcter Character
iab charcters characters
iab Charcters Characters
iab exmaple example
iab Exmaple Example
iab exmaples examples
iab Exmaples Examples
iab shoudl should
iab Shoudl Should
iab seperate separate
iab Seperate Separate
iab fone phone
iab Fone Phone
" Set the status line the way i like it
set stl=%f\ %m\ %r\ Ligne:%l/%L[%p%%]\ Col:%c\ Buf:%n\ [%b][0x%B]
"
" " tell VIM to always put a status line in, even if there is only one window
set laststatus=2
"
" " Don't update the display while executing macros
set lazyredraw
"
" " Show the current command in the lower right corner
set showcmd
"
" " Show the current mode
set showmode
" Vim en pager (plus nécessaire avec vimpager?)
let $PAGER=''
" Sessions
set viewdir=$HOME/.vim/sessions/
" Autocommand
" :autocmd BufEnter * cd %:p:h "se mettre automatiquement dans le dossier du fichier courant
" 256 couleurs
set t_Co=256
colorscheme desert256
" gVim
set gfn=DejaVu\ LGC\ Sans\ Mono\ 10
set guioptions=etmr
PS : Si tu utilises "urxvt", il faut le configurer pour le support de 256 couleurs, dans .Xresources (ou .Xdefaults) :
La commande "tput colors" indique combien de couleurs le terminal supporte.