[vim] python files execute selection
This commit is contained in:
6
vim/ftplugin/python.vim
Normal file
6
vim/ftplugin/python.vim
Normal 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>
|
||||
|
||||
Reference in New Issue
Block a user