[vim] python files execute selection

This commit is contained in:
2022-09-02 20:16:36 +03:00
parent 1cadbbcf64
commit ce6446b119

6
vim/ftplugin/python.vim Normal file
View File

@@ -0,0 +1,6 @@
fu PyRun() range
echo system('python -c ' . shellescape(join(getline(a:firstline, a:lastline), "\n")))
endf
vmap <F5> :call PyRun()<CR>