vim-evanesco icon indicating copy to clipboard operation
vim-evanesco copied to clipboard

Visual star search jumps to last edited file

Open obxhdx opened this issue 5 years ago • 2 comments

I have seen these unexpected jumps for a long time but was never able to understand or reproduce it consistently, until today:

evanesco-star-search

Steps to Reproduce:

  1. Edit any file and close it
  2. Open a new nvim instance
  3. Type some text, select it, press *

Expected Behavior: Occurrences of the visually selected text are matched in the current buffer.

Current Behavior: Nvim simply opens the last file I edited (as if I had pressed C-o).

Contents of minimal.nvim:

set hidden
call plug#begin('~/.vim/plugins')
Plug 'pgdouyon/vim-evanesco'
call plug#end()

obxhdx avatar Jan 28 '20 00:01 obxhdx

I'm not able to reproduce the behavior with those steps. There were some recent changes to visual search merged in a couple of days ago, can you make sure you're updated to the latest version and try again?

If you're still seeing this issue after updating can you let me know which version of Neovim you're currently using?

pgdouyon avatar Jan 28 '20 01:01 pgdouyon

I just double checked the evanesco version and I was already using the latest.

I also tested with Vim 8.2 and the problem doesn't happen, so I believe this is some funkiness involving Neovim. I'm currently on MacOS, using iTerm version 3.3.7, with Neovim 0.4.3.

obxhdx avatar Jan 28 '20 02:01 obxhdx