Skip to content

Instantly share code, notes, and snippets.

@MattHealy
Created August 7, 2019 23:06
Show Gist options
  • Save MattHealy/3856cec0200fa1262900dcc2c63b2c34 to your computer and use it in GitHub Desktop.
Save MattHealy/3856cec0200fa1262900dcc2c63b2c34 to your computer and use it in GitHub Desktop.
Mac OSX vimrc file
" 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