Hi Thanks, I can now reproduce the E315 bug too using your indications and Vim-7.2.368 on Linux.
I simplified the script a bit to use the 3 files
(testfile1, testfile2, test.vim) as follows:
$ cat testfile1
"{{{
abc
"}}}
$ cat testfile2
"{{{
abc
"}}}
"{{{
def
"}}}
$ cat test.vim
set scrolloff=3 foldmethod=marker
au BufEnter * norm H
e testfile1
e testfile2
exe "norm G"
bp
$ vim -u NONE -c 'so test.vim'
... gives
Error detected while processing BufEnter Auto commands for "*":
E315: ml_get: invalid lnum: 6
E315: ml_get: invalid lnum: 5
E315: ml_get: invalid lnum: 4
-- Dominique
--
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
test.vim
Description: Binary data
testfile1
Description: Binary data
testfile2
Description: Binary data
