vimrc f9 to execute python
This commit is contained in:
parent
1e7950caeb
commit
0b4a07a2eb
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue