Hello,
I've been using "set ttym=" and "set mouse=" in my vimrc for a while.
It clears the mouse setting in non-GUI vim so that my mouse continues
to work the way I expect it to.
Recently I switched from a ubuntu based distro to a slackware based
one, for reasons that are similar to my crudmudeonly continued use of
non-GUI vim in black and white xterms. (This newfangled mouse stuff
didn't exist in vim 3.0! Probably not 4.0 either, but I don't have a
copy around to test with.)
Curiously clearing ttym, that is "set ttym=", in my .vimrc has a very
weird brokenness on slackware. I don't know if it is the fault of the
build, something in the system, but I found it in both the 14.0 and
14.1 distros. On slackware, the default vi is elvis, so the vim
package may be less tested.
Here's what happens when I use that setting. Immediately on startup,
whether an empty buffer or an existing file, vim pauses for a short
while then it acts like someone mashed on a function key. The screen
would flash (visual bell) and I'd be left in a state expecting a move
command for a change. For a long time I was not able to figure out
exactly what it was, until I discovered it happens with vim run as ex:
$ ex ~/.vimrc
"~/.vimrc" 14L, 212C
Entering Ex mode. Type "visual" to go to Normal mode.
:^[[>41;297;0c
The ^[ is an escape. This looks like an attempt by vim to send a
control sequence to the terminal, and based on the ttym involvement
it's likely a mouse state probe / initialization. Only the single
line "set ttym=" in ~/.vimrc is necessary for this to happen.
Has anyone else observed similar behavior? How can I figure out if
it is vim or slackware? With no .vimrc I get:
:set ttymouse mouse
ttymouse=sgr
mouse=a
And the mouse does not cut-n-paste the way I expect.
Elijah
------
:version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Oct 2 2013 20:15:40)
Included patches: 1-50
Compiled by <volkerdi@slackware.com>
Huge version without GUI. Features included (+) or not (-):
+acl +farsi +mouse_netterm +syntax
+arabic +file_in_path +mouse_sgr +tag_binary
+autocmd +find_in_path -mouse_sysmouse +tag_old_static
-balloon_eval +float +mouse_urxvt -tag_any_white
-browse +folding +mouse_xterm -tcl
++builtin_terms -footer +multi_byte +terminfo
+byte_offset +fork() +multi_lang +termresponse
+cindent +gettext -mzscheme +textobjects
-clientserver -hangul_input +netbeans_intg +title
-clipboard +iconv +path_extra -toolbar
+cmdline_compl +insert_expand +perl +user_commands
+cmdline_hist +jumplist +persistent_undo +vertsplit
+cmdline_info +keymap +postscript +virtualedit
+comments +langmap +printer +visual
+conceal +libcall +profile +visualextra
+cryptv +linebreak +python +viminfo
+cscope +lispindent -python3 +vreplace
+cursorbind +listcmds +quickfix +wildignore
+cursorshape +localmap +reltime +wildmenu
+dialog_con -lua +rightleft +windows
+diff +menu -ruby +writebackup
+digraphs +mksession +scrollbind -X11
-dnd +modify_fname +signs -xfontset
-ebcdic +mouse +smartindent -xim
+emacs_tags -mouseshape -sniff -xsmp
+eval +mouse_dec +startuptime -xterm_clipboard
+ex_extra +mouse_gpm +statusline -xterm_save
+extra_search -mouse_jsbterm -sun_workshop -xpm
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -O2 -U_F
ORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -Wl,-E -Wl,-rpath,/usr/lib/perl5/CORE -L/usr/local/lib -Wl,--as
-needed -o vim -lm -lncurses -lelf -lnsl -lacl -lattr -lgpm -ldl -Wl,
-E -Wl,-rpath,/usr/lib/perl5/CORE -fstack-protector -L/usr/local/lib -L/usr/li
b/perl5/CORE -lperl -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc -L/usr/lib/pytho
n2.7/config -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic
--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Friday, May 9, 2014
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment