On 2 апр, 20:14, Ben Fritz <
fritzophre...@gmail.com> wrote:
> This simple test case demonstrates my problem:
>
> vim -u NONE -N -i NONE
>
> :autocmd BufRead *.txt setlocal wrap
> :view test.txt
> :tabe test.c
> :setlocal nowrap
>
> Now modify test.txt outside of Vim and give focus back to Vim to
> trigger a reload of test.txt.
>
> Vim is still in the test.c tab, so when the BufRead autocmd fires,
> 'wrap' is set for test.c instead of test.txt.
I confirm it. Looks like a bug to me.
Maxim Kim.