2009/2/6 Dewr <[email protected]>: > Thank you, Tony. but my Vim works well when it is working with _vimrc or > blahblah.vim. > I just wanted Vim to keep the syntax-highlighting made by ':setlocal > filetype=vim'. but Vim loses syntax-highlighting when ':bnext'|':bprevious' > command is given. > I thought it's a bug. isn't it a bug?
It is not. :help 'ft' states that 'ft' is local to a buffer. When you do :bnext, you change the buffer, so the value of 'ft' changes as well. Seems logical to me. -- Cheers, Lech --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
