Dennis Benzinger
And how can I do that?
:set guitabtooltip=a\nb
results in a tooltip displaying "anb" (Without the quotes).
The output of :version is:
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Aug 11 2008 22:02:07)
Übersetzt von dennis@dennis-laptop
Riesige Version mit GTK2 GUI. Ein- (+) oder ausschließlich (-) der
Eigenschaften:
+arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset
+cindent +clientserver +clipboard +cmdline_compl +cmdline_hist
+cmdline_info +comments +cryptv +cscope +cursorshape +dialog_con_gui +diff
+digraphs +dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi
+file_in_path +find_in_path +float +folding -footer +fork() +gettext
-hangul_input +iconv +insert_expand +jumplist +keymap +langmap
+libcall +linebreak +lispindent +listcmds +localmap +menu +mksession
+modify_fname +mouse +mouseshape +mouse_dec -mouse_gpm -mouse_jsbterm
+mouse_netterm -mouse_sysmouse +mouse_xterm +multi_byte +multi_lang
-mzscheme +netbeans_intg -osfiletype +path_extra +perl +postscript
+printer +profile +python +quickfix +reltime +rightleft -ruby
+scrollbind +signs +smartindent -sniff +statusline -sun_workshop +syntax
+tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse
+textobjects +title +toolbar +user_commands +vertsplit +virtualedit
+visual +visualextra +viminfo +vreplace +wildignore +wildmenu
+windows +writebackup +X11 -xfontset +xim +xsmp_interact
+xterm_clipboard -xterm_save
System-vimrc-Datei: "$VIM/vimrc"
Benutzer-vimrc-Datei: "$HOME/.vimrc"
Benutzer-exrc-Datei: "$HOME/.exrc"
System-gvimrc-Datei: "$VIM/gvimrc"
Benutzer-gvimrc-Datei: "$HOME/.gvimrc"
System-Menü-Datei: "$VIMRUNTIME/menu.vim"
Voreinstellung für $VIM: "/home/dennis/local/vim/share/vim"
Übersetzt: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I
/usr/lib/glib-2.0/include -I/usr/include/freetype2
-I/usr/include/libpng12 -I/usr/include/pixman-1 -O2
-fno-strength-reduce -Wall -D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -DDEBIAN -I/usr/local/
include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/lib/perl/5.8/CORE -I/usr/include/python2.5 -pthread
Linken: gcc -Wl,-E -L/usr/local/lib -o vim -lgtk-x11-2.0
-lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0
-lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lXt -lncurses -lselinux
-Wl,-E -L/usr/local/lib
/usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl/5.8/CORE
-lperl -L/usr/lib/python2.5/config -lpython2.5 -lutil -lm -Xlinker
-export-dynamic -Wl,-O1 -Wl,-Bsymbolic-f
unctions
Am I missing a feature for evaluating the \n in guitabtooltip?
Dennis Benzinger
Option 1: Don't use an escape sequence with :set; use the terminal
code:
:set guitabtooltip=a<Ctrl-V><Ctrl-M>b
Option 2: Treat it as an expression rather than an option:
:let &guitabtooltip="a\nb"
Using :set with very complicated string options is a real pain. With
:let, you can avoid much of the headache associated with backslashes
and whitespace. And, in this case, it's the only way to get escape
characters recognized.
Are these options documented in the help? If not, could you write a
patch for the help files (probably for :help setting-guitablabel)? I
don't know what to write because I don't know why these options work and
why other ways of including a newline in guitabtooltip don't work.
Thanks,
Dennis Benzinger
See
:help :let-option
:help expr-quote
Best regards,
Tony.
--
"I refuse to have a battle of wits with an unarmed person."