Color the column before text wrapping
With specific behaviour for git commit.
This commit is contained in:
		
							parent
							
								
									bacad24760
								
							
						
					
					
						commit
						4f94ced9ff
					
				
							
								
								
									
										7
									
								
								vimrc
								
								
								
								
							
							
						
						
									
										7
									
								
								vimrc
								
								
								
								
							|  | @ -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é | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue