Skip to content

Instantly share code, notes, and snippets.

@kranzrm
Created June 12, 2016 20:51
Show Gist options
  • Save kranzrm/9092b5ad3cd59bc033e9c9037b2c5acb to your computer and use it in GitHub Desktop.
Save kranzrm/9092b5ad3cd59bc033e9c9037b2c5acb to your computer and use it in GitHub Desktop.
Vim RC script
set bg=dark
set ts=4
set expandtab
set autoindent
set shiftwidth=4
set softtabstop=4
set showmatch
let python_highlight_all = 1
syntax on
"filetype indent plugin on
"
"" Use the below highlight group when displaying bad whitespace is desired.
highlight BadWhitespace ctermbg=red guibg=red
" Display tabs at the beginning of a line in Python mode as bad.
" au BufRead,BufNewFile *.py,*.pyw match BadWhitespace /^\t\+/
" " Make trailing whitespace be flagged as bad.
" au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/
autocmd BufNewFile,BufRead *.md set filetype=markdown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment