From 0b4a07a2eb95cf7c23cd4691b274d0b531fb5d39 Mon Sep 17 00:00:00 2001 From: clint Date: Sat, 20 Aug 2022 19:12:35 -0500 Subject: [PATCH] vimrc f9 to execute python --- vimrc/.vimrc | 3 +++ 1 file changed, 3 insertions(+) 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)