When `/’search is used in vim, can different searches be performed in each buffer without affecting each other?

  question, vim

Vim version: 7.4 huge version.

There will be multiple buffer in use, multiple split window in one tab, and multiple tabs.

Can multiple buffer be searched separately in a vim process without affecting each other?

Vim’s tab is just a container for display.
The only thing that really exists is buffer.

@ EvianI gave you some advice on how to make use of the BufEnter/BufLeave incident.
Then I’ll help you fill in the code

augroup SearchKeyword
 autocmd!
 autocmd BufEnter * let @/ = exists('b:keyword') ?  b:keyword : ''
 autocmd BufLeave * let b:keyword = @/
 augroup END
  • nohlsearchInautocmdInvalid in, deleted