This is a simple implementation for runnning background tasks in vim 7.
Setup:
-
Download the repository.
-
Create a .vim/ftplugin directory in your home directory if non exists.
-
Place the my_python.vim file directly in the ftplugin directory.
-
Create a .vim/ftplugin/python directory.
-
Place the scheduler.py in the .vim/ftplugin/python
-
Add source ~/.vim/frplugin/my_python.vim to your .vimrc
-
Done!
Run a command such as 'python some_script.py test.txt' with:
:RScript "python some_script.py test.txt"
To check if any background task is finished:
:RScriptMessages
To check which processes that are running:
:RScriptProcesses
To kill a process:
:RScriptProcessesKill "ProcessID"
Owner: Oscar Svensson
Email: wgcp92@gmail.com