vimrc f9 to execute python

This commit is contained in:
clint 2022-08-20 19:12:35 -05:00
parent 1e7950caeb
commit 0b4a07a2eb
1 changed files with 3 additions and 0 deletions

View File

@ -37,3 +37,6 @@ set foldnestmax=2
nnoremap <space> za
vnoremap <space> zf
" F9 execute current Python file
autocmd FileType python map <buffer> <F9> :w<CR>:exec '!clear;python' shellescape(@%, 1)<CR>
autocmd FileType python imap <buffer> <F9> <esc>:w<CR>:exec '!clear;python' shellescape(@%, 1)<CR>