Vim syntax sample for log files
- Copy log.vim to ~/.vim/syntax/log.vim or $HOME/vimfiles/syntax/log.vim
- Append the following snippet to your vimrc file.
au BufNewFile,BufRead *.log set filetype=log
- Append the following snippet to your vimrc file. And press 'F5' key to reload and scroll automatically. You can press Ctrl + C to stop.
map <F5> :sleep 1000ms<CR>:e<CR>G<F5>