Benjamin McMillan wrote:
I don't know if this is a bug, so for now I'm going to post it on this
list. Maybe I'm just using the wrong option.

I'm using the BufReadPost au to echo the filename to screen, but this
is causing visual artifacts when I change buffers: some of the
characters from the previous buffer appear in the current buffer. I've
also tried other au's, but either they also result in artifacts or
they don't achieve the original goal of echoing the filename.

It seems a lot of people use this au to do stuff, but no-one has
talked about artifacts related to it. Happens in vim7 - haven't
checked vim6.
au BufReadPost * silent !echo -e "\x1bk%\x1b\\"

Thanks guys!

- What are the Esc k and Esc \ for?

- There is an internal ":echo" in Vim: use

        au BufRead * echo expand("%")

see
        :help :echo
        :help expand()


Best regards,
Tony.
--
Fortune: You will be attacked next Wednesday at 3:15 p.m. by six samuri
sword wielding purple fish glued to Harley-Davidson motorcycles.

Oh, and have a nice day!
                -- Bryce Nesbitt '84

Reply via email to