Re: Vim Function: return from within Python Code

2016-03-21 Thread Nikolay Aleksandrovich Pavlov
2016-03-21 18:31 GMT+03:00 rameo : > @ZyX, > > Thanks, > You mean to extract the Python code to a .py file and import it in my vim > function? To a function in a *.py file. Python module is supposed to do nothing except for defining a few variables when it is imported,

Re: Vim Function: return from within Python Code

2016-03-21 Thread rameo
@ZyX, Thanks, You mean to extract the Python code to a .py file and import it in my vim function? I still don't understand how to exit from my pythoncode from within my python code. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text

Re: Vim Function: return from within Python Code

2016-03-21 Thread Nikolay Aleksandrovich Pavlov
2016-03-19 19:38 GMT+03:00 rameo : > I have a VIM function with a lot of code written in python. > > There are many loops and sub-loops with this kind of code: > > if this > exit > else > do this > > Does anyone know how to exit the python code and return to vim? > (or even

Re: Vim Function: return from within Python Code

2016-03-21 Thread A. S. Budden
On 21 March 2016 at 09:12, A. S. Budden wrote: > On 19 March 2016 at 16:38, rameo wrote: >> I have a VIM function with a lot of code written in python. >> >> There are many loops and sub-loops with this kind of code: >> >> if this >> exit >> else >> do

Re: Vim Function: return from within Python Code

2016-03-21 Thread A. S. Budden
On 19 March 2016 at 16:38, rameo wrote: > I have a VIM function with a lot of code written in python. > > There are many loops and sub-loops with this kind of code: > > if this > exit > else > do this > > Does anyone know how to exit the python code and return to vim? > (or

Vim Function: return from within Python Code

2016-03-19 Thread rameo
I have a VIM function with a lot of code written in python. There are many loops and sub-loops with this kind of code: if this exit else do this Does anyone know how to exit the python code and return to vim? (or even better "how to exit the function from within python code?") sys.exit()