Created
November 6, 2014 18:51
-
-
Save teepark/b2dae4d3b778c2a4e1e4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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