VIM: Makes vim auto-add comment character
It will do this in insert mode when pushing <enter> or when in normal mode when pushing o or O
This commit is contained in:
		
							parent
							
								
									925ca95619
								
							
						
					
					
						commit
						6dc5cda0d8
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -38,3 +38,8 @@ set linebreak
 | 
			
		|||
" Sets tool for opening non-text files with gx
 | 
			
		||||
" If in netrw, this is run with just x
 | 
			
		||||
let g:netrw_browsex_viewer = "opout"
 | 
			
		||||
 | 
			
		||||
" Automatically insert comment leader after hitting enter
 | 
			
		||||
set formatoptions+=r
 | 
			
		||||
" Automatically insert comment leader after hitting o or O
 | 
			
		||||
set formatoptions+=o
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue