40 lines
		
	
	
		
			786 B
		
	
	
	
		
			VimL
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			786 B
		
	
	
	
		
			VimL
		
	
	
	
	
	
| " do not make Vim more Vi-compatible
 | |
| set nocompatible
 | |
| 
 | |
| " disable modeline for security
 | |
| set nomodeline
 | |
| 
 | |
| " let vim set the terminal title
 | |
| set title
 | |
| 
 | |
| " avoid creating a swapfile
 | |
| set noswapfile
 | |
| 
 | |
| " Highlight the screen line of the cursor
 | |
| set cursorline
 | |
| 
 | |
| " Ignore case in search patterns and hihglight search results
 | |
| set ignorecase hlsearch
 | |
| 
 | |
| " enable syntax highlighting
 | |
| syntax on
 | |
| 
 | |
| " show tabs and trailing spaces
 | |
| set list listchars=tab:>-,trail:-
 | |
| 
 | |
| " Suppress the banner in netrw
 | |
| let g:netrw_banner=0
 | |
| 
 | |
| " Tree style listing in netrw
 | |
| let g:netrw_liststyle = 3
 | |
| 
 | |
| " let command-line completion operates in an enhanced mode
 | |
| set wildmenu
 | |
| 
 | |
| " disable ringing the bell for all events
 | |
| set belloff=all
 | |
| 
 | |
| " Automatically remove trailing whitespace
 | |
| autocmd! BufWrite * mark ' | silent! %s/\s\+$// | norm '
 | |
| 
 |