Neovim: inccommand: hl-Substitute applies in split win, but not buffer

Created on 15 Nov 2016  路  1Comment  路  Source: neovim/neovim

  • nvim --version:
NVIM v0.2.0-71-g01ef6fc
Build type: Debug
Compilation: /usr/bin/cc -Wconversion -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -DHAVE_CONFIG_H -D_GNU_SOURCE -I/mnt/src/editor/neovim6-incsub/build/config -I/mnt/src/editor/neovim6-incsub/src -I/mnt/src/editor/neovim6-incsub/.deps/usr/include -I/mnt/src/editor/neovim6-incsub/.deps/usr/include -I/mnt/src/editor/neovim6-incsub/.deps/usr/include -I/mnt/src/editor/neovim6-incsub/.deps/usr/include -I/mnt/src/editor/neovim6-incsub/.deps/usr/include -I/mnt/src/editor/neovim6-incsub/.deps/usr/include -I/usr/include -I/mnt/src/editor/neovim6-incsub/build/src/nvim/auto -I/mnt/src/editor/neovim6-incsub/build/include
Compiled by ybochkarev@malta

Optional features included (+) or not (-): +acl   +iconv    +jemalloc +tui
For differences from Vim, see :help vim-differences

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/share/nvim"
  • Operating system/version: Ubuntu 12.04
  • Terminal name/version: terminator 0.96 (tmux 2.4)
  • $TERM: screen-256color

Actual behaviour

The string that replaces the search pattern is not highlighted.

Expected behaviour

Words AFTER should be highlighted with red.

Steps to reproduce using nvim -u NORC

test.vim:

highlight Search term=NONE cterm=NONE ctermfg=black ctermbg=9
highlight IncSearch cterm=NONE ctermfg=black ctermbg=10
highlight Substitute cterm=NONE ctermfg=black ctermbg=9
set inccommand=nosplit
nvim -u test.vim -i NORC LICENSE
enhancement

Most helpful comment

Currently the replacement highlighting was only implemented for the preview split window (inccomand=split). Though it would be nice to support this more generally.

>All comments

Currently the replacement highlighting was only implemented for the preview split window (inccomand=split). Though it would be nice to support this more generally.

Was this page helpful?
0 / 5 - 0 ratings