Re: The cursor blinks again, but I can't tweak it
Tony Mechelynck <[email protected]>
| Newsgroups | gmane.editors.vim.devel |
|---|---|
| Message-ID | <CAJkCKXtXFYbfdMRzO4_WL+jiX-S1aoCZ15vqiA81GNJRO2rqKQ@mail.gmail.com> |
@Christoffer: Both wayland and X11 are compiled-in, however "set wlseat?" gives an error. I /think/ gvim uses X11 via GTK3. (According to ":help 'clipmethod'", the 'clipmethod' option is ignored when […] the GUI is running […].) ":echo getwinpos()" gives [0, 27] in a maximized window (with a system titlebar at top), which confirms me in the belief that wayland is not being used. My configuration is set by means of environment variables, as follows (for this build): export CONF_OPT_GUI='--enable-gui=gtk3' # the multibyte feature itself (+multi_byte) is now always enabled export CONF_OPT_MULTIBYTE='--enable-multibyte' export CONF_OPT_TERMINAL='--disable-terminal' export CONF_OPT_AUTOSERVE='--enable-autoservername' export CONF_OPT_FEAT='--with-features=huge' export CONF_OPT_COMPBY='"[email protected]"' Here is the output of ":set!" in a help buffer (nondefault settings, one option per line). ":version" comes after. --- Options --- autoindent autowriteall nobuflisted buftype=help clipboard=exclude:cons\|linux cmdheight=2 comments= commentstring= concealcursor=nc cscopequickfix=s-,c-,d-,i-,t-,e-,a- cscoperelative cscopeverbose cursorcolumn cursorline delcombine diffopt=internal,filler,closeoff,indent-heuristic,inline:char,context:8,algorithm:minimal display=lastline noequalalways errorbells fileencoding=utf-8 fileencodings=ucs-bom,utf-8,latin1 filetype=help nofoldenable formatoptions=tcroql guicursor=a:blinkwait100-blinkon300-blinkoff300,n-v-c:block-Cursor/lCursor,ve:ver35-Cursor,o:hor50-Cursor,i-ci:ver25-Cursor/lCursor,r-cr:hor20-Cursor/lCursor,sm:block-Cursor-blinkwait175-blinkoff150-blinkon175 guifont=Bitstream Vera Sans Mono 6 guioptions=!cgmrLtp helpheight=9999 helplang=en history=1000 hlsearch ignorecase incsearch iskeyword=!-~,^*,^|,^",192-255 nojoinspaces keymodel=startsel keywordprg=:help langnoremap nolangremap laststatus=2 listchars=eol:¶,tab:|_,extends:>,precedes:<,conceal:*,nbsp:· nomodifiable mouse=nvi mousemodel=popup nrformats=unsigned omnifunc=HelpComplete previewheight=9999 readonly regexpengine=1 report=0 runtimepath=~/.vim,/usr/share/vim/vimfiles,/usr/local/share/vim/vim92,/usr/local/share/vim/vim92/pack/dist/opt/netrw,/usr/local/share/vim/vim92/pack/dist/opt/matchit,/usr/share/vim/vimfiles/after,~/.vim/after scroll=27 scrolloff=4 selectmode=mouse,key shellcmdflag=-ic showtabline=2 sidescroll=1 sidescrolloff=1 smartcase smartindent smoothscroll splitbelow statusline=%<%f %h%m%r%=%k[%{(&fenc==''?&enc:&fenc)}%{(&bomb?',BOM':'')}][U+%04B] %-14.(%l,%c%V%) %P suffixes=.bak,~,.o,.h,.info,.swp,.obj,.snap switchbuf=useopen synmaxcol=0 syntax=help tabline=%!MyTabLine() termencoding=utf-8 textwidth=78 timeoutlen=5000 toolbariconsize=tiny ttimeout ttimeoutlen=250 verbose=1 viminfo='1000,!,%,c,r/mnt/ visualbell whichwrap=b,s,<,>,[,] wildcharm=^Z wildmode=longest:full,full window=64 winheight=9999 winminheight=0 t_vb=^[|250f Here is the output of ":version" VIM - Vi IMproved 9.2 (2026 Feb 14, compiled Aug 13 2026 21:28:38) Included patches: 1-957 Compiled by [email protected] Huge version with GTK3 GUI. Features included (+) or not (-): +acl +cmdline_compl +eval -image_gdi +localmap +multi_byte -python3 +syntax +user_commands +X11 +arabic +cmdline_hist +ex_extra -image_gdk -lua +multi_lang +quickfix +tabpanel +vartabs +xattr +autochdir +cmdline_info +extra_search +image_kitty +menu -mzscheme +reltime -tag_any_white +vertsplit -xfontset +autocmd +comments -farsi +image_sixel +mksession +netbeans_intg +rightleft +tag_binary +vim9script +xim +autoservername +conceal +file_in_path +insert_expand +modify_fname +num64 -ruby -tag_old_static +viminfo +xpm +balloon_eval +cryptv +find_in_path +ipv6 +mouse +packages +scrollbind -tcl +virtualedit +xsmp_interact +balloon_eval_term +cscope +float +job +mouse_dec +pango +signs +termguicolors +visual +xterm_clipboard +browse +cursorbind +folding +jumplist +mouse_gpm +path_extra +smartindent -terminal +visualextra -xterm_save ++builtin_terms +cursorshape -footer +keymap -mouse_jsbterm -perl +socketserver +terminfo +vreplace +byte_offset +dialog_con_gui +fork() +lambda +mouse_netterm +persistent_undo +sodium +termresponse +wayland +channel +diff +gettext +langmap +mouse_sgr +popupwin +sound +textobjects +wayland_clipboard +cindent +digraphs -hangul_input +libcall -mouse_sysmouse -postscript +spell +textprop +wildignore +clientserver +dnd +iconv +linebreak +mouse_urxvt +printer +startuptime +timers +wildmenu +clipboard -ebcdic +image +lispindent +mouse_xterm +profile +statusline +title +windows +clipboard_provider +emacs_tags +image_cairo +listcmds +mouseshape -python -sun_workshop +toolbar +writebackup system vimrc file: "$VIM/vimrc" user vimrc file: "$HOME/.vimrc" 2nd user vimrc file: "~/.vim/vimrc" 3rd user vimrc file: "$XDG_CONFIG_HOME/vim/vimrc" user exrc file: "$HOME/.exrc" system gvimrc file: "$VIM/gvimrc" user gvimrc file: "$HOME/.gvimrc" 2nd user gvimrc file: "~/.vim/gvimrc" 3rd user gvimrc file: "$XDG_CONFIG_HOME/vim/gvimrc" defaults file: "$VIMRUNTIME/defaults.vim" system menu file: "$VIMRUNTIME/menu.vim" fall-back for $VIM: "/usr/local/share/vim" Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glycin-2 -I/usr/include/libseccomp -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/atk-1.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/libxkbcommon -I/usr/include/wayland -I/usr/include/fribidi -I/usr/include/libpng16 -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -O2 -fno-strength-reduce -Wall -Wno-deprecated-declarations -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 Linking: gcc -L/usr/local/lib -Wl,--as-needed -o vim -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lcairo-gobject -lgdk_pixbuf-2.0 -latk-1.0 -lpango-1.0 -lcairo -lharfbuzz -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lz -lSM -lICE -lXpm -lXt -lX11 -lwayland-client -lm -lcairo -lz -lpangocairo-1.0 -lpango-1.0 -lcairo -lharfbuzz -lgobject-2.0 -lglib-2.0 -lXdmcp -lSM -lICE -lm -ltinfo -lselinux -lcanberra -lsodium -lacl -lattr -lgpm On Fri, Aug 14, 2026 at 4:50 AM Christoffer Aasted <[email protected]> wrote: > > @Tony I need exact env before I experiment more. Confirm if its gtk3 - wl or x11? > > I'm not that well-versed in guicursor settings - I find the doc quite confusing. > > @Christian can you confirm whether its proper to use prepending in this case and if you can expect a stable cursor without hiccups using those exact values? > > On Thursday, August 13, 2026 at 9:08:10 PM UTC+2 Christoffer Aasted wrote: >> >> Tested 9.2.956 gtk3 wl,x11 they seem identical with this caveat: >> >> I noticed a hiccup that was consistent a few seconds after startup or after setting guicursor, however after that consistent. I'm looking into that. >> >> On Thursday, August 13, 2026 at 7:41:19 PM UTC+2 Christian Brabandt wrote: >>> >>> >>> On Do, 13 Aug 2026, Tony Mechelynck wrote: >>> >>> > The cursor blinks again, but with the following: >>> > >>> > if has("gui_running") >>> > set guicursor^=a:blinkwait100-blinkon300-blinkoff300 >>> > endif >>> > >>> > or also with += instead of ^= (i.e. append rather then prepend) I >>> > cannot make the cursor blink on and off equally long, it always blinks >>> > on longer than off (as is the default) in all the modes I've tested; >>> > and yet typing >>> >>> Hm, I cannot seem to see this (but perhaps I can just not tell the >>> difference visually), for me after the initial blink, it seems to do >>> exactly what I entered via the guicursor setting. >>> >>> Is this for the GTK2 or GTK3 UI? >>> >>> Thanks, >>> Christian >>> -- >>> Yes, many primitive people still believe this myth...But in today's technical >>> vastness of the future, we can guess that surely things were much different. >>> -- The Firesign Theater > > -- > -- > 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 visit https://groups.google.com/d/msgid/vim_dev/c0250af3-dc3c-4ab1-8a82-8a1c4ec30009n%40googlegroups.com. -- -- 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 visit https://groups.google.com/d/msgid/vim_dev/CAJkCKXtXFYbfdMRzO4_WL%2BjiX-S1aoCZ15vqiA81GNJRO2rqKQ%40mail.gmail.com.