On 8/16/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote:
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.
Bram, have you ever given any thought to using a gap buffering-strategy for lines? This would make many operations on long lines (a recurring issue discussed on this list) faster. It will complicate the buffer handling a lot, though. nikolai