Ⅰ. 插件描述
Vim plugin which asks for the right file to openⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'einfachtoll/didyoumean-enchanted'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'einfachtoll/didyoumean-enchanted'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'einfachtoll/didyoumean-enchanted'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/einfachtoll/didyoumean
Ⅳ. 文档说明
DidYouMean
Vim plugin which asks for the right file to open.
Demo:
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](https://github.com/junegunn/fzf.vim) plugin is installed. 