I use to be able to resize my vim splits using the mouse in the terminal by clicking on the borders and dragging. Now I can't. How can I make it work again?
edit: still works in gvim but doesn't work in vim.
edit: It doesn't work not because of ubuntu 18.04 itself but because the terminal emulator is gnome.
edit: Well turns out it's not a problem of gnome terminal but some user setting for my ubuntu user.
edit: After much wasted time debugging I found the problem was this setting
set term=screen-256color
I also had this in my .bashrc
TERM=screen-256color
Both these settings break the mouse resizing for some reason. If I recall I added them because tmux wouldn't be able to display vim's themes properly in ubuntu 16. Seems to be working now even without them. The only other problem I found is that now I can't use my mouse to resize within tmux but this was solved with:
if &term =~ '^screen'
" tmux knows the extended mouse mode
set ttymouse=xterm2
endif