Friday, March 4, 2016

Vim and Python

Vim and Python is an incredible power combination.
Vimscript is great, Python makes it even greater, faster and easier.

What I just want to ask is if it possible in a future release to include the python regex code as well.
Now I do a search in vim, capture the search/matches and use it in a vimscript function with partially vimscript code, switching to python code.
If Vim could understand python regex code it would be even easier.
I just can do the search in python and capture matches in python, using a vim function.

Just an idea: using a P to let VIM know that the search is a python search?
VIM:
/mysearch

PYTHON:
P/mysearch

It is also difficult to exit python code within a vim function.
sys.exit() in python code p.e. doesn't work in a vim function.

In all ways, thanks again for the great editor.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: