set hlsearch
colors darkblue "or any colorscheme
syntax on "or 'syntax enable'
Edit any file (mvim filename), create a duplicate line or two, then search for a duplicate word.
All matches will be highlighted except the match at the current cursor position (press n or * to cycle through and observe).
Note: changing the color scheme OR re-issuing syntax on after MacVim launches will fix the issue for the current session.
Note: it looks like MacVim will correctly perform syntax highlighting if syntax on or syntax enable is simply omitted, so the workaround is to remove syntax on from the .vimrc.
Expected behaviour
All search matches should be highlighted, including the one under the cursor.
Version of Vim and architecture
9.0.0065, GUI, arm64
Environment
Monterey 12.5 for M2
Apple Terminal
xterm-256color
zsh 5.8.1 (x86_64-apple-darwin21.0)
Steps to reproduce
.vimrc
containing only these lines:mvim filename
), create a duplicate line or two, then search for a duplicate word.n
or*
to cycle through and observe).syntax on
after MacVim launches will fix the issue for the current session.syntax on
orsyntax enable
is simply omitted, so the workaround is to removesyntax on
from the .vimrc.Expected behaviour
All search matches should be highlighted, including the one under the cursor.
Version of Vim and architecture
9.0.0065, GUI, arm64
Environment
Monterey 12.5 for M2 Apple Terminal xterm-256color zsh 5.8.1 (x86_64-apple-darwin21.0)
How MacVim was installed
Homebrew
Logs and stack traces
No response
Vim configuration where issue is reproducable
https://gist.github.com/AbePralle/4083bbac7866782876250133ce831eb3
Issue has been tested with given configuration
Issue has been tested with no configuration
mvim --clean
(orgvim
, supplied by MacVim distribution)vim --clean
(in terminal, supplied by MacVim distribution)vim --clean
(in terminal, other suppliers, e.g. /usr/bin/vim)Other conditions