2016-03-21 18:31 GMT+03:00 rameo <[email protected]>: > @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, something is being done when you call functions/classes/etc stored in those defined variables. > I still don't understand how to exit from my pythoncode from within my python > code. Just like you exit from your VimL code from within VimL code. Return or use exceptions, programming techniques do not change when you change language. @A. S. Budden gave a simplified example. > > -- > -- > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. -- -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
