Craig Barkhouse wrote:
> vim -c "bufdo normal gg" *.c
>
> The problem I see is that the first and last buffers have
> syntax highlighting, but all the intermediate buffers do not.
At ':help :bufdo' we see that bufdo disables the Syntax
automcommand event (for speed). That means the buffers you had
not previously visited do not have syntax highlighting. I do not
know the official way to overcome this issue, but I press F7
once (twice??) where I have this in vimrc:
" Toggle syntax off/on (from Help).
noremap <F7> :if exists("syntax_on") <Bar>
\ syntax off <Bar>
\ else <Bar>
\ syntax enable <Bar>
\ endif <CR>
John
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---