diff --git a/README.md b/README.md index f6244d96..925cfd6e 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,7 @@ Just run `topgrade`. It will run the following steps: * [NeoBundle](https://github.com/Shougo/neobundle.vim) * [Vundle](https://github.com/VundleVim/Vundle.vim) * [Plug](https://github.com/junegunn/vim-plug) + * [Dein](https://github.com/Shougo/dein.vim) * Node * Run `yarn global update` if yarn is installed. * Run `npm update -g` if NPM is installed and `npm root -g` is a path inside your home directory. diff --git a/src/steps/vim.rs b/src/steps/vim.rs index 31ac13d0..39bf1389 100644 --- a/src/steps/vim.rs +++ b/src/steps/vim.rs @@ -11,6 +11,7 @@ pub enum PluginFramework { Plug, Vundle, NeoBundle, + Dein, } impl PluginFramework { @@ -23,6 +24,8 @@ impl PluginFramework { Some(PluginFramework::Vundle) } else if content.contains("plug#begin") { Some(PluginFramework::Plug) + } else if content.contains("dein#begin") { + Some(PluginFramework::Dein) } else { None } @@ -33,6 +36,7 @@ impl PluginFramework { PluginFramework::NeoBundle => "NeoBundleUpdate", PluginFramework::Vundle => "PluginUpdate", PluginFramework::Plug => "PlugUpgrade | PlugUpdate", + PluginFramework::Dein => "call dein#install() | call dein#update()", } } }