Brad Beveridge wrote: > I'm working with a Vim that has been patched to support ECL Lisp > (http://wiki.alu.org/Vim_ECL). Part of our project involves > outputting potentially large amounts of data to a buffer in a > streaming fashion, ie always adding at the end. > I think that I have worked out a reasonable way to append lines[1], > but I can't see any obvious way to quickly append single chars to a > buffer. > Are there any functions like ml_append I can look to for this support? > How should I go about appending single chars very quickly?
Vim internally works linewise. Appending a character means taking the current line and replacing it with one that has the character appended. If you keep adding characters to the same line you could do some optimization to avoid having to allocate/free lines all the time. -- hundred-and-one symptoms of being an internet addict: 151. You find yourself engaged to someone you've never actually met, except through e-mail. /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///