Hi I don't like vim syntax for writing scripts (set let a: g:variable). I choose to use python environment for writing things in vim.
However I've encountered some problems. One: I have access to buffers from vim python object. However I don't know if I can add buffer via vim objects or if this object is only for accessing the buffers. I cannot inherit Vim object. That is why I created my own wrapper for vim native functions (line, getline, setline). I do that by vim.eval() command. The problem is that to write into a buffer I have to switch into other buffer and then I have to call in a loop setline which can only write into current buffer. My Write function in python makes vim call by vim.eval() as following :b1 (select buffer1) getline(...) setline(...) setlocal(...) :b4 (select previous buffer) When I am writing a lot of data to the buffer it takes time. It is too long for me to accept. The speed of execution is only determined by python environment? Or I shouldn't be using eval function, or is there any way to speed things up? -- View this message in context: http://old.nabble.com/writing-to-a-buffer-%28not-only-with-python%29-tp28544564p28544564.html Sent from the Vim - General mailing list archive at Nabble.com. -- 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
