Skip to content

Instantly share code, notes, and snippets.

@teepark
Created November 6, 2014 18:51
Show Gist options
  • Save teepark/b2dae4d3b778c2a4e1e4 to your computer and use it in GitHub Desktop.
Save teepark/b2dae4d3b778c2a4e1e4 to your computer and use it in GitHub Desktop.
augroup python_exec
autocmd!
autocmd FileType python nnoremap <buffer> <leader>r :<c-u>execute "w\|!python %"<cr>
autocmd FileType python nnoremap <buffer> <leader>p :<c-u>execute "w\|!flake8 %"<cr>
autocmd FileType python nnoremap <buffer> <leader>o :<c-u>execute "w\|!flake8 %>/tmp/errfile\|cf /tmp/errfile"
augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment