47

GitHub - EinfachToll/DidYouMean: Vim plugin which asks for the right file to ope...

 5 years ago
source link: https://github.com/EinfachToll/DidYouMean
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

DidYouMean

Vim plugin which asks for the right file to open.

Demo:

asciicast

If you're like me and you want to edit a specific file with Vim, say, test.py, you type vim te into the terminal, then you hit <Tab> and <Enter> immediately because you think your shell expands the characters to the right file name. But if there's another file starting with te, Vim fires up with an empty file called te, laughing at you. That's annoying. This simple plugin makes Vim ask for the right file to open.

Installation

Just drop DidYouMean.vim into .vim/plugin/ or use a plugin manager like Pathogen or Vundle.

Configuration

This plugin can use fzf to present/filter the list if - it is enabled by let g:dym_use_fzf = 1 in your .vimrc - the fzf.vim plugin is installed.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK