Page Through MySQL with Vim
Yesterday I wrote about paging through the MySQL REPL with Less. Here's how to do it with the more fully-featured Vim text editor.
mysql> pager vim - PAGER set to 'vim -'
- is important; it tells Vim to read text from stdin. Normal Vim feature flags can be used with this pager, so if you want to set use Vim's easy mode (for example), use the flag:
mysql> pager vim -y - PAGER set to 'vim -y -'