Last active
October 17, 2015 05:35
-
-
Save aaronorosen/28ba7c77e293abe3ff61 to your computer and use it in GitHub Desktop.
This file contains 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
set background=dark | |
set ts=3 | |
augroup filetypedetect | |
au! BufRead,BufNewFile *nc set ft=nc | |
augroup END | |
set background=dark | |
autocmd FileType python setlocal expandtab shiftwidth=4 softtabstop=4 | |
autocmd FileType javascript setlocal expandtab shiftwidth=4 softtabstop=4 | |
autocmd FileType html setlocal expandtab shiftwidth=4 softtabstop=4 | |
autocmd FileType yaml setlocal expandtab shiftwidth=2 tabstop=8 softtabstop=2 | |
highlight ExtraWhitespace ctermbg=darkgreen guibg=lightgreen | |
match ExtraWhitespace /\s\+$\| \+\ze\t/ | |
autocmd ColorScheme * highlight ExtraWhitespace ctermbg=red guibg=red | |
autocmd Syntax * syn match ExtraWhitespace /\s\+$\| \+\ze\t/ | |
au! BufRead,BufNewFile *nc set ft=nc | |
augroup END | |
set background=dark | |
autocmd FileType json setlocal expandtab shiftwidth=4 softtabstop=4 | |
highlight ExtraWhitespace ctermbg=darkgreen guibg=lightgreen | |
match ExtraWhitespace /\s\+$\| \+\ze\t/ | |
autocmd ColorScheme * highlight ExtraWhitespace ctermbg=red guibg=red | |
autocmd Syntax * syn match ExtraWhitespace /\s\+$\| \+\ze\t/ | |
:au BufWinEnter * let w:m1=matchadd('Search', '\%<81v.\%>77v', -1) | |
:au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1) | |
au BufWritePost *.py !pyflakes % | |
au BufWritePost *.py !pep8 % | |
au FileType python map <buffer> <F6> :!pep8 %<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment