diff --git a/vimrc/.vimrc b/vimrc/.vimrc index 2dff349..deb3e44 100644 --- a/vimrc/.vimrc +++ b/vimrc/.vimrc @@ -37,3 +37,6 @@ set foldnestmax=2 nnoremap za vnoremap zf +" F9 execute current Python file +autocmd FileType python map :w:exec '!clear;python' shellescape(@%, 1) +autocmd FileType python imap :w:exec '!clear;python' shellescape(@%, 1)