Hi

I'm using Charle's plugin for large files, version 5 (2013-11-25)
available at:

  http://www.vim.org/scripts/script.php?script_id=1506

The plugin is causing the following error when trying to
open 3 large files with the -o or -O options:

  E201: *ReadPre autocommands must not change current buffer"

Steps to reproduce:

1) create 3 large files:

   $ yes 111 | head -10000000 > foo1
   $ yes 222 | head -10000000 > foo2
   $ yes 333 | head -10000000 > foo3

2) open the 3 files with Vim, with LargeFile plugin installed, as follows:

  $ vim -o foo1 foo2 foo3

3) notice the error message:

E201: *ReadPre autocommands must not change current buffer
Press ENTER or type command to continue

After pressing ENTER, notice that file foo1 is loaded in top
and bottom window, and middle window is empty. I would
expect instead to see foo1 in top window, foo2 in middle
window and foo3 in bottom window.

I noticed the bug using vim-7.4.979 (huge) on Linux x86_64.
Bug does not happen with Vim that comes with xubuntu-14.04 (7.4.52).

Doing a bisection in git:

  7.4.072 --> OK (no error)
  7.4.073 --> Error E201

So the regression is introduced by this patch:

commit f5a2fd880ae8f6225814209ab73783f65078a4d5
Author: Bram Moolenaar <[email protected]>
Date:   Wed Nov 6 05:26:15 2013 +0100

    updated for version 7.4.073
    Problem:    Setting undolevels for one buffer changes undo in another.
    Solution:   Make 'undolevels' a global-local option. (Christian Brabandt)

Regards
Dominique

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui