jmcomets / vim-pony

Pony power for working with Django projects.
67 stars 11 forks source link

Config option to wrap commands #7

Open rklyne opened 10 years ago

rklyne commented 10 years ago

I use virtualenvs or Vagrant VMs to encapsulate environments and Vim on the host to edit. I'd like to be able to have a config option that allows me to wrap each python command in the necessary script to make it work. For example, with config set to vagrant ssh -c "%", ./manage.py shell would become vagrant ssh -c "./manage.py shell".

jmcomets commented 10 years ago

This is close to #8, I'll get this out in a bit.

jmcomets commented 10 years ago

Untested, but it really doesn't need it. Set the g:pony_python_cmd to the appropriate python command, which should be in your case : vagrant ssh -c python.

rklyne commented 10 years ago

Doesn't do it for me - I need the quoting. I need the command to be shell escaped and to be able to wrap the escaped version in quotes.