junegunn / junegunn/fzf.vim

Search result string gets inserted when opening file

Open
#692 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vim Script
Stars
10.3k
Forks
608
Avg merge
5d 8h
Merged PRs (30d)
2

Description

- Category
- [ ] Question
- [x] Bug
- [ ] Suggestion
- OS
- [ ] Linux
- [x] macOS
- [ ] Windows
- [ ] Etc.
- Vim
- [x] Vim
- [ ] Neovim

I've been having a strange issue ever since I've started using fzf.vim. Any time I search for a term and select a file to open from the results, the file is opened and the search result string is inserted into the file.

Here are my settings:

```
command! -bang -nargs=* Find
\ call fzf#vim#grep(
\ 'rg --line-number --fixed-strings --ignore-case --hidden --follow --glob "!.gi t/*" --color "always" '.shellescape(), 1,
\ 0 ? fzf#vim#with_preview('up:60%')
\ : fzf#vim#with_preview('right:50%:hidden', '?'),
\ 0)
```

Any ideas as to why this may be happening? Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.