Vim: execute the script I’m working on in a split screen

keyboard shortcutspythonvim

I'm working on a small python script, which needs frequent execution in order to debug and further develop.

Can I split the vim screen and execute my script on one part with a keystroke?

Best Answer

Add this line to your .vimrc:

command R !./%

And then you can just type ":R" while in Vim to run the script (vim-run-current-file)

Related Question