Add ranger-like key binding to NERDTree.
Currently this only implements ranger movement.
Install NERDTree first.
- Add
Plug 'hankchiutw/nerdtree-ranger.vim'
to your vimrc file. - Reload your vimrc or restart
- Run
:PlugInstall
Vundle or similar
- Add
Plugin 'hankchiutw/nerdtree-ranger.vim'
to your vimrc file. - Reload your vimrc or restart
- Run
:BundleInstall
- Add
NeoBundle 'hankchiutw/nerdtree-ranger.vim'
to your vimrc file. - Reload your vimrc or restart
- Run
:NeoUpdate
cd ~/.vim/bundle
git clone https://github.com/hankchiutw/nerdtree-ranger.vim.git
(For Neovim, change ~/.vim/
to ~/.config/nvim/
.)
curl -fLo ~/.vim/plugin/reload.vim --create-dirs \
https://raw.githubusercontent.com/hankchiutw/nerdtree-ranger.vim/master/plugin/reload.vim
curl -fLo ~/.vim/ftplugin/dart.vim --create-dirs \
https://raw.githubusercontent.com/hankchiutw/nerdtree-ranger.vim/master/ftplugin/dart.vim
md ~\vimfiles\plugin
md ~\vimfiles\doc
$pluguri = 'https://raw.githubusercontent.com/hankchiutw/nerdtree-ranger.vim/master/plugin/reload.vim'
$ftpluguri = 'https://raw.githubusercontent.com/hankchiutw/nerdtree-ranger.vim/master/ftplugin/dart.vim'
(New-Object Net.WebClient).DownloadFile($pluguri, $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath("~\vimfiles\plugin\reload.vim"))
(New-Object Net.WebClient).DownloadFile($ftpluguri, $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath("~\vimfiles\ftplugin\dart.vim"))
Try h
and l
keys in your tree node.
Since NERDTree has keymap API, you can implement your own keymap.
Refer to NERDTree's ui_glue.vim
(inspired from ranger)