Questions tagged [vim-fzf]
31 questions
2
votes
2 answers
FZF-like way to quickly change into a directory? Include hidden files in Vim FZF?
I am looking for a way to quickly change my Vim directory to a directory I find through an FZF-type-of-way. I understand it stands for Fuzzy File Searcher, not Fuzzy Directory Searcher, but I'm sure there is a similar tool or a hidden feature to use…

StolaDev
- 137
- 1
- 7
2
votes
1 answer
.gitignore node_modules/ not working for fd and ripgrep
I'm trying to setup fzf.vim for vim on windows 10.
You can use an alternative find command like ripgrep or fd which is supposed to respect .gitignore.
My .gitignore file has this line, which is working fine for git commits, etc.:
node_modules/
My…

user210757
- 6,996
- 17
- 66
- 115
2
votes
2 answers
Fuzzy set working directory from bookmarked directories in vim
Sometimes I need to change the current working directory to a different location (e.g. to search in different project). This can for example be achived with lcd /path/to/dir.
However writing out paths is ofter too slow and I often find myself using…

Sebastian Müller
- 573
- 4
- 15
1
vote
0 answers
Neovim: Moving selected text to another file selected by fzf
I find myself selecting text from a vim buffer and appending it to another file. I currently do that by:
select the text with Shift + V
in commend mode, execute: w >> my_file
This requires that I write the exact filepath to my_file. Instead, I…

user1602031
- 11
- 2
1
vote
0 answers
ag (the silver searcher) does not automatically search recursively
When performing ag pattern it only searches in the files in the current directory, even when providing --depth NUM>1. Performing ag pattern ./** looks in all subdirectories as well. I am currently using the :Ag command with fzf-vim which also only…

hilbor
- 15
- 3
1
vote
1 answer
Vim FZF : list buffers as they are shown on tabbar
I am trying to use fzf.vim to quickly switch between buffers. I have fzf and fzf.vim setup in Neovim and it is working. But, I would like to change the way the buffers are listed in fzf list. Here is what I am using:
command! -bang -nargs=?…

NESHOM
- 899
- 16
- 46
1
vote
0 answers
How to pass nested parameters to fzf in vim?
How can I make the function Function1 fzf pass var1 to the function Function2?
I know you can do this "function ('s: Function2', [a: var1])", the problem is that it will no longer pass the captured value var2
For now a workaround is with a global…

Erick RaApa
- 41
- 5
0
votes
1 answer
How to use ansi colors in fzf --header?
I have try to change the font color in fzf's header.
Here's an example: https://github.com/linrongbin16/fzfx.vim/blob/fa1723e8185e3c2e3d45b6937383ef283c0d3297/autoload/fzfx/vim.vim#L88
But the ansi color code is not working, it just prints:
:: Press…

linrongbin
- 2,967
- 6
- 31
- 59
0
votes
0 answers
Plugging in a custom command to vim/fzf
I have created a command that lists "interesting" files. The output is a list of file names separated with new lines (much like the output of grep -l). The command is called lif - for 'list interesting files'.
I would like to use this command with…

az5112
- 590
- 2
- 11
0
votes
1 answer
How to create custom find files command using fzf.vim?
I am using fzf.vim, I have set FZF_DEFAULT_COMMAND='fd' to improve search speed.
But 'fd' default behavior will respect .gitignore, .ignore files, and filter hidden files. It's useful in most cases, but not all.
So I want to create another command…

linrongbin
- 2,967
- 6
- 31
- 59
0
votes
1 answer
Force fzf :Tags to use a specific file with vim
I'm using fzf for a few weeks now and it really changed my workflow. I'm working on a big project with multiple things interconnected.
I'd like to use :Tags command to have an overview of all existing tags in the whole project (not to have multiple…

Corentin Michel
- 23
- 5
0
votes
1 answer
How can I use Telescope.nvim to complete a path in insert mode?
Fzf.vim implements a fuzzy finder in insert mode, extending the native ins-completion functionality.
For example: in insert mode, we can map to enable Fzf.vim to fuzzy find and insert file names with relative paths (fzf-complete-path).…

Gustavo Basso
- 129
- 11
0
votes
2 answers
Best workflow using Vim buffers
In the last 2-3 years that I started using Vim as my main editor, I've learned to use windows (splits) when working with multiple files (Because in every task, I need lots of files to work with)
But a few days ago, I ran into this question and it…

Mostafa
- 103
- 1
- 11
0
votes
1 answer
Fake the version number of a binary
I'm trying to get fzf to work in vim on a Debian buster distro. The version of fzf in Debian buster is 0.17 but the Vim package fzf.vim requires 0.24
A temporary workaround for this was suggested at…

uroboros
- 154
- 7
0
votes
1 answer
Is there a way to cancel fzf by pressing escape
I have alias vif='vim $(fzf) in my ~/.zprofile and it works great; however, it always opens vim window even if I click esc button because I didn't find the file I was looking for. How do I get it to not open vim if I press esc?

user4426017
- 1,930
- 17
- 31