1
0
mirror of https://github.com/xlogerais/config-vim synced 2024-11-14 01:46:56 +01:00

Added configuration for the status bar

This commit is contained in:
Xavier Logerais 2015-03-01 21:02:06 +01:00
parent e38c756205
commit f27c6f5536

56
vimrc
View File

@ -1,21 +1,65 @@
" ------ [ Gestion des options ] ---------------------------------------------- " ------ [ Gestion des options ] ----------------------------------------------
" We don't want vi compatibility. " We don't want vi compatibility.
set nocompatible set nocompatible
" we have a fast terminal " we have a fast terminal
set ttyfast set ttyfast
" ------ [ Gestion des plugins ] ----------------------------------------------
execute pathogen#infect()
" ------[ Gestion de la barre de statut ] ----------------------------------------------
" Display title
set title
" ruler display in status line
set ruler
" show mode at bottom of screen
set showmode
" Custom statusline
" cf the default statusline: %<%f\ %h%m%r%=%-14.(%l,%c%V%)\ %P
" format markers:
" %< truncation point
" %n buffer number
" %f relative path to file
" %m modified flag [+] (modified), [-] (unmodifiable) or nothing
" %r readonly flag [RO]
" %y filetype [ruby]
" %= split point for left and right justification
" %-35. width specification
" %l current line number
" %L number of lines in buffer
" %c current column number
" %V current virtual column number (-n), if different from %c
" %P percentage through buffer
" %) end of width specification
set statusline=
set statusline+=%n " buffer number
set statusline+=\ " space separator
set statusline+=%t " file name
set statusline+=%= " right align
set statusline+=%m%r%h%w
set statusline+=\ " space separator
set statusline+=Encoding:[%{strlen(&fenc)?&fenc:&enc}] " encoding
set statusline+=\ " space separator
set statusline+=Type:%y
set statusline+=\ " space separator
set statusline+=Curseur:[colonne\ %c/ligne\ %l]
set statusline+=\ " space separator
set statusline+=Position:[%l/%L\ (%p%%)]
" occasions to show status line, 2=always.
set laststatus=2
" ------ [ Gestion de la coloration syntaxique ] ---------------------------------------------- " ------ [ Gestion de la coloration syntaxique ] ----------------------------------------------
syntax on syntax on
" ------ [ Gestion de la correction d'orthographe ] ---------------------------------------------- " ------ [ Gestion de la correction d'orthographe ] ----------------------------------------------
setlocal nospell setlocal nospell
setlocal spelllang=fr setlocal spelllang=fr
" ------ [ Gestion des plugins ] ----------------------------------------------
execute pathogen#infect()