I don't want to show the first NERDTree grep result

Asked 2 years ago, Updated 2 years ago, 102 views

I put plug-in to add grep function to NERDTree, but I don't want to open the first file as a result of grep without permission, but I can't do it well.
Is there any way to prevent it from opening on its own?

vim

2022-09-29 21:20

1 Answers

You must manipulate the plug-in.
line 38,

exec'silent grep-rn'.pattern.'.'

This is

exec'silent grep!-rn'.pattern.'.'

Try adding ! like this.


2022-09-29 21:20

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.