>
>
> By the way I have written a lot of python vim code and I have a
> bunch of utility functions that I reuse often. I'll attach
> them to this message, see if you might find them useful....
>
> But you need to reload it manually if changed, vim won't
> reload it if you just have 'from util import *' on top of
> a module.
>
> Also, maybe you already thought of this, but I find this
> approach handy to expose multiple python functions in
> a module:
>
> [in python file]
>
> def delswp(): ...
>
> arg = exist_eval("a:arg")
> if arg:
> locals()[arg]()
>
>
> [in .vim plugin]
>
> function! Other(arg)
> :pyfile ~/.vim/python/other.py
> endfu
> nnoremap <c-j>s :call Other("delswp")<CR>
>
>
Thanks a lot.
I copied the file and will look at it later.
Some functions look rather useful.
Now I just need a real task , that I would like to script :-)
--
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