Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.
/ fzf_dym Public archive

A simple VimScript "Did you Mean..." plugin based on FZF.

License

Notifications You must be signed in to change notification settings

Penaz91/fzf_dym

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FZF-DYM

A simple VimScript "Did you Mean..." plugin based on FZF. Based on my personal VimRC, now extracted to a standalone plugin

Requirements

Setup

I personally use vim-plug, but this can probably be adapted to other systems

" Remember to add FZF and FZF.vim before this plugin
Plug 'penaz91/fzf_dym'

How it works

Let's imagine a situation where you have a folder with 3 similarly-named files: readme_1.txt, readme_2.txt, readme_3.txt.

You want to give a quick glance to readme_2.txt so you do:

$ nvim re<TAB><CR>

Your shell will probably complete the filename as readme_, but it's too late. You pressed enter. Instead of creating a new file that is called readme_, FZF-DYM will ask if you meant any of the existing files. After you select the file to read via FZF, you're set.

Don't want to read one of the existing files? Just press ESC and nvim will fall back to its default behaviour.

About

A simple VimScript "Did you Mean..." plugin based on FZF.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published