A Vim plugin that allows you to put any buffer into "tail" mode, watching for file updates as if using tail -f or less +F.
- Enter tail mode for any buffer with a readable file.
- Replaces the current window's buffer with a terminal running
less +F. - Mimics
lessbehavior: Ctrl-C to stop following, 'q' to exit.
- Copy
plugin/tail.vimto~/.vim/plugin/. - Copy
doc/tail.txtto~/.vim/doc/. - Run
:helptags ~/.vim/doc/in Vim to generate help tags.
For plugin managers like vim-plug: > Plug 'your-repo/tail' <
:Tail- Enter tail mode for the current buffer.
<Plug>Tail- Enter tail mode. Map it to a key, e.g.: > nmap t Tail <
In the terminal buffer:
- File updates are followed automatically.
- Press Ctrl-C to pause following.
- Press 'q' to exit and return to the original buffer view.
- Vim with terminal support (Vim 8.0+).
MIT