Mouse support in vim

This post is over three years old. Some of it may no longer reflect current tooling or my current view.

Today I learned that if you hit Esc in vim and then type :set mouse=a and hit enter… vim grows mouse support! In your terminal!

You can use the mouse to select blocks of text and move the insertion cursor around, then hit del to delete it or type to replace it.

I learned this after tweeting a demo video of Will McGugan’s brilliant new textual Python library for building TUIs - terminal user interfaces - and marveling at how his demo application can already respond to mouseover events and scroll wheel activation while running in the terminal.