Consider the following script:
=============================== qflistbug.vim ===============================
function s:Read()
    call setline('.', range(1, 100))
endfunction
autocmd BufReadCmd read://* :call s:Read()
call setqflist([{'lnum': 4, 'text': 'Abc def', 'filename': 'read://100'}])
cfirst
=============================================================================
Being launched with
    vim -u NONE -S qflistbug.vim
it ends up on the 100th line of buffer named read://100, while it should end 
on 4th one. Everything is normal if ``'read://100''' is replaced with 
`expand('<sfile>')'.

Attachment: signature.asc
Description: This is a digitally signed message part.



Raspunde prin e-mail lui