map F :e<CR>GL:sleep 1<CR>F - Hit F to follow log files in vim
map F :e<CR>GL:sleep 1<CR>F
This is a key mapping stolen from vim's provided less.sh macro, who stole it from less, who stole it from tail. Hit <C-c> to stop it.
Why?
Because vim has really nice syntax highlighting for log files and you probably open them with it anyway.
To really make vim act like less, enter:
:runtime! macros/less.vim
Posted Mar 30, 2012, 1:11 PM UTC
Nice! I wouldn't map it to F though because I use it for backwards char search. But nice tip anyway!