[Code Example] fzf vim integration

Total
0
Shares

In this article we will give you code for fzf vim integration. You can enable fzf in your vim by adding the fzf directory to &runtimepath in your Vim configuration file.

Code Example –

# Check you fzf installation directory.
# It could be /usr/local/opt/fzf if installed through homebrew
set rtp+=/usr/local/opt/fzf

# If installed through git - ~/.fzf
set rtp+=~/.fzf

If you are using vim-plug

Plug '/usr/local/opt/fzf' # For homebrew
# Or
Plug '~/.fzf' # for git

1. Look for files under current directory

:FZF

2. Look for files under your home directory

:FZF ~

3. With fzf command-line options

:FZF --reverse --info=inline /tmp

4. Bang version starts fzf in fullscreen mode

:FZF!

Sign Up for Our Newsletters

Get only the best articles delivered to your mail

You May Also Like