vim: removed useless comments
This commit is contained in:
		
							parent
							
								
									f517dceb94
								
							
						
					
					
						commit
						8d5fbf6127
					
				
							
								
								
									
										35
									
								
								vim/vimrc
									
									
									
									
									
								
							
							
						
						
									
										35
									
								
								vim/vimrc
									
									
									
									
									
								
							| @ -20,7 +20,6 @@ Bundle 'The-NERD-Commenter' | |||||||
| Bundle 'closetag.vim' | Bundle 'closetag.vim' | ||||||
| " } | " } | ||||||
| 
 | 
 | ||||||
| "Enable filetype plugin |  | ||||||
| filetype plugin indent on | filetype plugin indent on | ||||||
| syntax enable | syntax enable | ||||||
| 
 | 
 | ||||||
| @ -60,7 +59,7 @@ set wildmenu | |||||||
| set wildmode=longest:full,full | set wildmode=longest:full,full | ||||||
| set wildignore=*~,*.o,*.obj,*.bak,*.exe,*.class,*.jpg,*.png,*.gif,*.mp3 | set wildignore=*~,*.o,*.obj,*.bak,*.exe,*.class,*.jpg,*.png,*.gif,*.mp3 | ||||||
| 
 | 
 | ||||||
| set laststatus=2 " ajoute une barre de status | set laststatus=2 | ||||||
| set statusline=%f\ %m\ [%{&ff}]\ [%Y]\ [%{&fileencoding}]%=[%04l,\ %04v]\ [len=%04L] | set statusline=%f\ %m\ [%{&ff}]\ [%Y]\ [%{&fileencoding}]%=[%04l,\ %04v]\ [len=%04L] | ||||||
| 
 | 
 | ||||||
| set nocursorline | set nocursorline | ||||||
| @ -73,15 +72,10 @@ set undolevels=150 | |||||||
| 
 | 
 | ||||||
| set backup | set backup | ||||||
| 
 | 
 | ||||||
| " Backup dans ~/.vim/backup |  | ||||||
| if filewritable(expand("~/.vim/backup")) == 2 | if filewritable(expand("~/.vim/backup")) == 2 | ||||||
|     " comme le répertoire est accessible en écriture, |  | ||||||
|     " on va l'utiliser. |  | ||||||
|     set backupdir=$HOME/.vim/backup |     set backupdir=$HOME/.vim/backup | ||||||
| else | else | ||||||
|     if has("unix") || has("win32unix") |     if has("unix") || has("win32unix") | ||||||
|         " C'est c'est un système compatible UNIX, on |  | ||||||
|         " va créer le répertoire et l'utiliser. |  | ||||||
|         call system("mkdir $HOME/.vim/backup -p") |         call system("mkdir $HOME/.vim/backup -p") | ||||||
|         set backupdir=$HOME/.vim/backup |         set backupdir=$HOME/.vim/backup | ||||||
|     endif |     endif | ||||||
| @ -91,34 +85,33 @@ let mapleader = "," | |||||||
| 
 | 
 | ||||||
| " FOLDING | " FOLDING | ||||||
| " { | " { | ||||||
| " Hide/show useless parts of your code | set foldenable | ||||||
| " view/unfold the hidden block by pressing space inside the folded text | set foldmethod=syntax | ||||||
| " :help folding | " Number of columns to the left of the window to display folds | ||||||
| set foldenable " Turn on folding | set foldcolumn=0 | ||||||
| set foldmarker={,} " Fold C style code (only use this as default if you use a high foldlevel) | " Fold level to close when opening a file | ||||||
| set foldmethod=marker | set foldlevelstart=100 | ||||||
| set foldcolumn=0 " column to the left to see folds | 
 | ||||||
| set foldlevelstart=100 " évite que tous les folds soient fermés à l'ouverture d'un fichier | " Don't open folds when searching or undoing into them | ||||||
| set foldopen-=search " don't open folds when you search into them | set foldopen-=search | ||||||
| set foldopen-=undo " don't open folds when you undo stuff | set foldopen-=undo | ||||||
| " } | " } | ||||||
| 
 | 
 | ||||||
| " MAPPING | " MAPPING | ||||||
| " { | " { | ||||||
| map <F1> :help<CR> | map <F1> :help<CR> | ||||||
| 
 | 
 | ||||||
| " map toggle yes / no |  | ||||||
| noremap gy :call ToggleYesNo()<CR> | noremap gy :call ToggleYesNo()<CR> | ||||||
| 
 | 
 | ||||||
| map <F3> <ESC>:NERDTreeToggle<CR> | map <F3> <ESC>:NERDTreeToggle<CR> | ||||||
| map <F4> <ESC>:Tlist<CR> | map <F4> <ESC>:Tlist<CR> | ||||||
| " Tetris |  | ||||||
| map <F5> <ESC>:GundoToggle<CR> | map <F5> <ESC>:GundoToggle<CR> | ||||||
| map <F6> <ESC>:SokobanV<CR> | map <F6> <ESC>:SokobanV<CR> | ||||||
| map <F7> <ESC>:Matrix<CR> | map <F7> <ESC>:Matrix<CR> | ||||||
| map <F8> <Leader>te | map <F8> <Leader>te | ||||||
| 
 | 
 | ||||||
| map <F11> :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .<CR> | map <F11> :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .<CR> | ||||||
|  | " Rot13 | ||||||
| map <F12> ggVGg? | map <F12> ggVGg? | ||||||
| " } | " } | ||||||
| 
 | 
 | ||||||
| @ -135,7 +128,7 @@ autocmd FileType html,xhtml,xml,htmldjango,jinjahtml,eruby,mako source ~/.vim/bu | |||||||
| " TagList : http://vim-taglist.sourceforge.net/ | " TagList : http://vim-taglist.sourceforge.net/ | ||||||
| " Need ctags | " Need ctags | ||||||
| " :help taglist | " :help taglist | ||||||
| let Tlist_Ctags_Cmd="ctags" " chemin vers ctags | let Tlist_Ctags_Cmd="ctags" | ||||||
| 
 | 
 | ||||||
| " Doxygen | " Doxygen | ||||||
| let g:DoxygenToolkit_authorName="Guillaume DOTT" | let g:DoxygenToolkit_authorName="Guillaume DOTT" | ||||||
| @ -144,7 +137,7 @@ let g:DoxygenToolkit_authorName="Guillaume DOTT" | |||||||
| " FILETYPES | " FILETYPES | ||||||
| " { | " { | ||||||
| " Open PDF files | " Open PDF files | ||||||
| " need xpdf et cups-pdf | " need xpdf and cups-pdf | ||||||
| autocmd BufReadPre *.pdf set ro nowrap | autocmd BufReadPre *.pdf set ro nowrap | ||||||
| autocmd BufReadPost *.pdf silent %!pdftotext "%" -nopgbrk -layout -q -eol unix - | autocmd BufReadPost *.pdf silent %!pdftotext "%" -nopgbrk -layout -q -eol unix - | ||||||
| autocmd BufWritePost *.pdf silent !rm -rf ~/Documents/% | autocmd BufWritePost *.pdf silent !rm -rf ~/Documents/% | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Guillaume DOTT
						Guillaume DOTT