Don't like ads? PRO users don't see any ads ;-)
Guest

vim

By: a guest on Aug 18th, 2012  |  syntax: None  |  size: 3.33 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. set number                                                                      
  2. set noexpandtab                                                                
  3. set nocompatible                                                                
  4. set autoindent                                                                  
  5. set ruler                                                                      
  6. set showcmd                                                                    
  7. set list                                                                        
  8. set listchars=tab:>-,trail:-,eol:$                                              
  9. set mouse=a                                                                    
  10. set shiftwidth=4                                                                
  11. set tabstop=4                                                                  
  12. set textwidth=79                                                                
  13. set cc=+1                                                                      
  14.                                                                                
  15. autocmd BufRead *\.txt map j gj                                                
  16. autocmd BufRead *\.txt map k gk                                                
  17. autocmd BufRead *\.txt map $ g$                                                
  18. autocmd BufRead *\.txt map 0 g0                                                
  19. autocmd BufRead *\.txt set nonu                                                
  20. autocmd BufRead *\.txt set wrap                                                
  21. autocmd BufRead *\.txt set linebreak                                            
  22. autocmd BufRead *\.txt set nolist                                              
  23.                                                                                
  24. "autocmd BufRead *\.tex map j gj                                                
  25. "autocmd BufRead *\.tex map k gk                                                
  26. "autocmd BufRead *\.tex map $ g$                                                
  27. "autocmd BufRead *\.tex map 0 g0                                                
  28. "autocmd BufRead *\.tex set nonu                                                
  29. "autocmd BufRead *\.tex set wrap                                                
  30. "autocmd BufRead *\.tex set linebreak                                          
  31. "autocmd BufRead *\.tex set nolist                                              
  32.                                                                                
  33. autocmd BufRead *\.py set softtabstop=4                                        
  34. autocmd BufRead *\.py set expandtab                                            
  35. autocmd BufRead *\.py set autoindent                                            
  36. autocmd BufRead *\.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
  37.                                                                                
  38. autocmd BufRead *\.pl set tabstop=2                                            
  39. autocmd BufRead *\.pl set softtabstop=2                                        
  40. autocmd BufRead *\.pl set expandtab                                            
  41.                                                                                
  42. cmap w!! %!sudo tee > /dev/null %