The vim docs say sgr should be set if xterm is v277 or later. The xterm binary on my system is 295 which is later, but I worry it is getting the version information from putty somehow. I can't see any xterm version information in the putty configuration dialog. ':verbose set ttymouse?' just yields 'xterm2' so no info thre. Thanks for your attention, and the attention of others. For myself I am content to set 'sgr' in my vimrc.
On Wednesday, 15 April 2020 12:39:19 UTC+1, Dominique Pelle wrote: > > Patrick Byrne wrote: > > > Yes 'sgr' did it - thanks! Sorry I assumed it was a bug. > > Perhaps 'sgr' ought to be the default these days. > > Cheers > > Patrick > > Not sure how many terminals support sgr which supports more columns/rows. > Probably most of them support sgr these days. > > In fact ":help ttymouse" says that default value depends on 'term'. > And if I do vim --clean then type :set ttymouse? > it shows: ttymouse=sgr > > So it is already sgr by default at least with my xfce4-terminal. > I also see sgr in xterm. > > Perhaps your .vimrc is explicitly setting ttymouse to xterm2? > Try running :verbose set ttymouse? > It may give a clue as to where ttymouse was set. > > I just checked help files in neovim and interestingly, I see that neovim > has no 'ttymouse' variable. Quoting neovim help file: > > === BEGIN QUOTE nvim.txt === > Your Vim configuration might not be entirely Nvim-compatible. > See vim-differences for the full list of changes. > > The 'ttymouse' option, for example, was removed from Nvim (mouse support > should work without it). > === END QUOTE === > > Regards > Dominique > -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/a7c60bfc-fa7f-4f3a-a82a-b8faa473a39b%40googlegroups.com.
