I'd like to append lines to background buffers.
Which is the best way to do it?
5 choices come to my mind:
a) use python. It can do it
b) use bufdo (??) and a if bufnr == target then append() endif hack
c) sp the buf, append, close (bad?, will cause much redrawing)
d) Delay adding lines. Use setbufvar to keep a list of lines to be added.
Add them on bufenter event when buffer is shown anyway
e) extend append and more functions so that you can pass a bufnr ?
e) gets funny:
fun Append(line)
try
call append(line, 0, bufnr)
catch /.*/
" fall back to split buffer, append, close
endtry
endif
I"d like to help making the asystem patch more usable. And appending lines to
buffers is essential.
Is there an even nicer option than the last which I've missed?
Marc Weber
--
You received this message from the "vim_dev" 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