Up until bookworm no visual bell was shown in vim on the console with my configuration. Now in insert mode (only), when paging an annoying visual bell is shown. This is *not* occuring with --clean but from the Debian changes I could not derive which settings fault it is. (And I have no idea how to search in the docs for it). As this is a (minor) regression, I'm reporting this. And if you have any suggestion how to find out which setting this causes (except for bisecting) I would be happy :-)) --- real paths of main Vim binaries --- /usr/bin/vi is /usr/bin/vim.gtk3 /usr/bin/vim is /usr/bin/vim.gtk3 /usr/bin/gvim is /usr/bin/vim.gtk3
I would suggest first comparing the output of ":set" with "vim --clean" and "vim". That should help narrow down which options differ from the defaults and may affect this behavior. You could bisect your config by placing the "finish" command in your vimrc at various points to see what introduces the behavior. Cheers,
Am Sun, Jun 23, 2024 at 11:19:33AM -0400 schrieb James McCoy:
Thanks.
vim --clean
background=dark helplang=de incsearch nolangremap mouse=nvi ruler scrolloff=5 ttimeout viminfofile=NONE
display=truncate history=200 langnoremap noloadplugins nrformats=bin,hex scroll=37 showcmd ttimeoutlen=100 wildmenu
backspace=indent,eol,start
fileencodings=ucs-bom,utf-8,default,latin1
vim:
autoindent backspace=indent helplang=de incsearch ruler shiftround shortmess=nxtToOS smartcase smarttab visualbell wildmenu
background=dark nofoldenable ignorecase laststatus=2 scroll=36 shiftwidth=4 showmatch smartindent softtabstop=4 wildignore=*.swp
cinoptions=t0,(0,u0
cpoptions=aABceFsJ
fileencodings=ucs-bom,utf-8,default,latin1
formatoptions=tcq2l
formatprg=fmt -cu -w70
listchars=eol:$,tab:>-,trail:_
printoptions=paper:a4
statusline=%<%f%y%m%r%=%l,%c%V %P
suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc
viminfo='1000,f1,"500,:50,@10,/100
Thanks, this made it easy.
It is the option "visualbell" which causes this behaviour. Until
bookworm paging worked in in insert mode with this option but without
visual bell, now it does.
Is this a delibarate feature change?
Greetings
Helge
I'm seeing similar behaviour from `vim' under screen. Cursor keys work fine. PgUp/PgDn while in insert mode have the desired action, but also rings the terminal bell each and every time the key is used. I have screen set to audible bell rather than visual bell - as I always have. This wasn't the case under bookworm. I did an upgrade using APT to Trixie, all went well. I suspect it is related to this bug. vim package version: 2:9.1.1230-2 Vim reports: :set --- Options --- background=dark langnoremap scroll=12 textwidth=80 cindent nolangremap scrolloff=5 ttimeout display=truncate nomodeline showbreak=+ ttimeoutlen=100 filetype=c modified showcmd helplang=en nrformats=bin,hex softtabstop=8 incsearch ruler syntax=c cinoptions=:0,l1,t0,g0,(0 comments=sO:* -,mO:* ,exO:*/,s1:/*,mb:*,ex:*/,:///,:// fileencoding=utf-8 fileencodings=ucs-bom,utf-8,default,latin1 formatoptions=croql omnifunc=ccomplete#Complete runtimepath=~/.vim,/var/lib/vim/addons,/etc/vim,/usr/share/vim/ vimfiles,/usr/s hare/vim/vim91,/usr/share/vim/vim91/pack/dist/opt/netrw,/usr/share/vim/ vimfiles/ after,/etc/vim/after,/var/lib/vim/addons/after,~/.vim/after suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg ,.inx,.out,.toc wildignore=*.ko,*.mod.c,*.order,modules.builtin
Comparing the termcap between Bookworm and Trixie reveals no differences,
so this is not a termcap issue.
Digging into VIM docs, there appears to be a setting "belloff". If I set
belloff=cursor, then the annoying behaviour goes away.
The VIM documentation states for this:
'belloff' 'bo' string (default "")
global
Specifies for which events the bell will not be rung. It is a
comma
separated list of items. For each item that is present, the bell
will be silenced. This is most useful to specify specific events
in
insert mode to be silenced.
...
cursor Fail to move around using the cursor keys or
<PageUp>/<PageDown> in |Insert-mode|.
The thing is, VIM is not failing to move around when using PageUp /
PageDown while in insert mode, but it still rings the bell unless belloff
is set to "cursor" - so Trxie's VIM behaviour and the VIM documentation
disagree.
Seems to me to be a clear cut VIM bug.