1
0
mirror of https://github.com/xlogerais/config-vim synced 2024-09-19 22:29:58 +02:00

Cosmetic changes in vimrc and gvimrc

This commit is contained in:
Xavier Logerais 2015-03-07 19:31:19 +01:00
parent 9acdf79497
commit 8f722a8eff
2 changed files with 13 additions and 13 deletions

14
gvimrc
View File

@ -10,7 +10,7 @@ set ttyfast
execute pathogen#infect() execute pathogen#infect()
" ------[ Gestion de la barre de statut ] ---------------------------------------------- " ------[ Gestion de la barre de statut ] -------------------------------------
" Display title " Display title
set title set title
@ -56,7 +56,7 @@ set statusline+=Position:[%l/%L\ (%p%%)]
" occasions to show status line, 2=always. " occasions to show status line, 2=always.
set laststatus=2 set laststatus=2
" ------[ Gestion du fichier viminfo ] ---------------------------------------------- " ------[ Gestion du fichier viminfo ] ----------------------------------------
" Tell vim to remember certain things when we exit " Tell vim to remember certain things when we exit
" '10 : marks will be remembered for up to 10 previously edited files " '10 : marks will be remembered for up to 10 previously edited files
@ -66,7 +66,7 @@ set laststatus=2
" n... : where to save the viminfo files " n... : where to save the viminfo files
set viminfo='10,\"100,:100,%,n~/.vim/viminfo set viminfo='10,\"100,:100,%,n~/.vim/viminfo
" ------[ Restauration de la position du curseur ] ---------------------------------------------- " ------[ Restauration de la position du curseur ] ----------------------------
function! ResCur() function! ResCur()
if line("'\"") <= line("$") if line("'\"") <= line("$")
@ -80,14 +80,14 @@ augroup resCur
autocmd BufWinEnter * call ResCur() autocmd BufWinEnter * call ResCur()
augroup END augroup END
" ------ [ 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 types de fichiers ] ---------------------------------------------- " ------[ Gestion des types de fichiers ] -------------------------------------
" Automatically detect file types. " Automatically detect file types.
filetype on filetype on
@ -101,7 +101,7 @@ filetype indent on
" autocmd FileType php set omnifunc=phpcomplete#CompletePHP " autocmd FileType php set omnifunc=phpcomplete#CompletePHP
" autocmd FileType c set omnifunc=ccomplete#Complete " autocmd FileType c set omnifunc=ccomplete#Complete
" ------[ Gestion des types de terminaux ] ---------------------------------------------- " ------[ Gestion des types de terminaux ] ------------------------------------
if has('gui_running') if has('gui_running')
set background=light set background=light

12
vimrc
View File

@ -10,7 +10,7 @@ set ttyfast
execute pathogen#infect() execute pathogen#infect()
" ------[ Gestion de la barre de statut ] ---------------------------------------------- " ------[ Gestion de la barre de statut ] -------------------------------------
" Display title " Display title
set title set title
@ -56,7 +56,7 @@ set statusline+=Position:[%l/%L\ (%p%%)]
" occasions to show status line, 2=always. " occasions to show status line, 2=always.
set laststatus=2 set laststatus=2
" ------[ Gestion du fichier viminfo ] ---------------------------------------------- " ------[ Gestion du fichier viminfo ] ----------------------------------------
" Tell vim to remember certain things when we exit " Tell vim to remember certain things when we exit
" '10 : marks will be remembered for up to 10 previously edited files " '10 : marks will be remembered for up to 10 previously edited files
@ -66,7 +66,7 @@ set laststatus=2
" n... : where to save the viminfo files " n... : where to save the viminfo files
set viminfo='10,\"100,:100,%,n~/.vim/viminfo set viminfo='10,\"100,:100,%,n~/.vim/viminfo
" ------[ Restauration de la position du curseur ] ---------------------------------------------- " ------[ Restauration de la position du curseur ] ----------------------------
function! ResCur() function! ResCur()
if line("'\"") <= line("$") if line("'\"") <= line("$")
@ -80,14 +80,14 @@ augroup resCur
autocmd BufWinEnter * call ResCur() autocmd BufWinEnter * call ResCur()
augroup END augroup END
" ------ [ 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 types de fichiers ] ---------------------------------------------- " ------[ Gestion des types de fichiers ] -------------------------------------
filetype on " Enable filetype detection filetype on " Enable filetype detection
filetype indent on " Enable filetype-specific indenting filetype indent on " Enable filetype-specific indenting