28th October 2008

Vim, GNU Screen and mouse

Tags : ,

Are you using your mouse with Vim ? You know, the little set mouse=a in your ~/.vimrc ? This just work with some terminal emulators (Xterm, RXVT, etc) but not with GNU Screen. The mouse just select text in the term :(

You can easily correct this. Just say to Vim how to handle the mouse for this terminal. Use a set ttymouse=xterm2 and it's done. Tadaaaa, you have a GNU Screen session on /dev/ttyUSB0, another for your code in Vim and another one for make... Happiness...

posted in Unix tools | 0 Comments