Color the column before text wrapping

With specific behaviour for git commit.
This commit is contained in:
gardouille 2022-12-01 11:27:00 +01:00
parent bacad24760
commit 4f94ced9ff
Signed by: gardouille
GPG Key ID: E759BAA22501AF32
1 changed files with 5 additions and 2 deletions

7
vimrc
View File

@ -55,7 +55,6 @@ set showmatch " vérification présence (, [ ou
filetype plugin indent on " détection automatique du type de fichier
autocmd FileType text setlocal textwidth=80 " les fichiers de type .txt sont limités à 80 caractères par ligne
autocmd FileType tex setlocal textwidth=80 " les fichiers de type .tex sont limités à 80 caractères par ligne
autocmd Filetype gitcommit setlocal textwidth=72 "
set fileformats=unix,mac,dos " gestion des retours chariot en fonction du type de fichier
set hlsearch " surligne les résultats de la recherche
" set nohls " ne pas surligner les résultats de la recherche
@ -74,7 +73,7 @@ set wildmode=longest:full "
set wildmenu " Use menu for command line completion
set virtualedit=all " Permet de se déplacer la ou il n'y a pas de caractères
set formatoptions+=awt
"set colorcolumn=81 " Coloration bar caractère 80
set colorcolumn=81 " By default, color the column after 80 characters
set wrapmargin=0
set foldmethod=marker " Use folding with marker (default: {{{ or }}})
@ -82,6 +81,10 @@ set foldmethod=marker " Use folding with marker (default
set encoding=utf-8
set fileencoding=utf-8
" Specific to git commit (COMMIT_EDITMSG) {{{
autocmd Filetype gitcommit setlocal textwidth=50
autocmd Filetype gitcommit setlocal colorcolumn=51
" }}}
" Path pour la recherche de fichier avec :find, :sfind et :tabfind
" :find ouvrira à la place du fichier en cours le fichier trouvé