Created
          August 7, 2019 23:06 
        
      - 
      
 - 
        
Save MattHealy/3856cec0200fa1262900dcc2c63b2c34 to your computer and use it in GitHub Desktop.  
    Mac OSX vimrc file
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | " Display a red column 80 chars in .py files (to assist with line length) | |
| " set colorcolumn=80 | |
| autocmd FileType python setlocal colorcolumn=80 | |
| " Return to last edit position when opening files | |
| autocmd BufReadPost * | |
| \ if line("'\"") > 0 && line("'\"") <= line("$") | | |
| \ exe "normal! g`\"" | | |
| \ endif | |
| " Trim trailing whitespace from lines when saving .py files | |
| autocmd BufWritePre *.py %s/\s\+$//e | |
| " Set tab/space shifts | |
| " setl expandtab | |
| " setl shiftwidth=4 | |
| " setl tabstop=4 | |
| " Solarized theme with syntax highlighting | |
| syntax enable | |
| " set background=dark | |
| " set background=light | |
| " colorscheme solarized | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment