7 lines
140 B
VimL
7 lines
140 B
VimL
fu PyRun() range
|
|
echo system('python -c ' . shellescape(join(getline(a:firstline, a:lastline), "\n")))
|
|
endf
|
|
|
|
vmap <F5> :call PyRun()<CR>
|
|
|