Last active
June 7, 2017 13:56
-
-
Save caiwan/e613a439358ce280933c4d052a025a5c to your computer and use it in GitHub Desktop.
vimrc for py
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 encoding=utf-8 | |
set fileencoding=utf-8 | |
filetype plugin indent on | |
syntax on | |
set smartindent | |
set expandtab | |
set ignorecase | |
set smartcase | |
set shiftwidth=4 | |
set tabstop=4 | |
set hlsearch | |
set ruler | |
set autowrite | |
set autoread | |
set nofoldenable | |
set number | |
augroup vimrc_autocmds_python | |
autocmd! | |
" highlight characters past column 120 | |
autocmd FileType python highlight Excess ctermbg=DarkGrey guibg=Black | |
autocmd FileType python nnoremap <buffer> <F5> :exec '!python' shellescape(@%, 1)<cr> | |
" autocmd FileType python match Excess /\%150v.*/ | |
autocmd FileType python set nowrap | |
autocmd FileType python set colorcolumn=12 | |
augroup END | |
autocmd Filetype javascript setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2 | |
autocmd Filetype html setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2 | |
autocmd Filetype coffee setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment