Skip to content

Instantly share code, notes, and snippets.

@showell
Created December 21, 2016 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save showell/afb1b76277f4e261b6a21db845ff1404 to your computer and use it in GitHub Desktop.
Save showell/afb1b76277f4e261b6a21db845ff1404 to your computer and use it in GitHub Desktop.
syntax on
set ai et sw=4 ts=4 softtabstop=4
set number
set backspace=indent,eol,start
set wildmenu
set wildmode=longest:full,full
autocmd BufWritePre *.py :%s/\s\+$//e
function! ResCur()
if line("'\"") <= line("$")
normal! g`"
return 1
endif
endfunction
augroup resCur
autocmd!
autocmd BufWinEnter * call ResCur()
augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment