Skip to content

hankchiutw/nerdtree-ranger.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

nerdtree-ranger.vim

Add ranger-like key binding to NERDTree.

Currently this only implements ranger movement.

Installation

Install NERDTree first.

Via Plugin Manager (Recommended)

  1. Add Plug 'hankchiutw/nerdtree-ranger.vim' to your vimrc file.
  2. Reload your vimrc or restart
  3. Run :PlugInstall

Vundle or similar

  1. Add Plugin 'hankchiutw/nerdtree-ranger.vim' to your vimrc file.
  2. Reload your vimrc or restart
  3. Run :BundleInstall
  1. Add NeoBundle 'hankchiutw/nerdtree-ranger.vim' to your vimrc file.
  2. Reload your vimrc or restart
  3. Run :NeoUpdate
cd ~/.vim/bundle
git clone https://github.com/hankchiutw/nerdtree-ranger.vim.git

Manual Installation

Unix

(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

Windows (PowerShell)

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"))

Usage

Try h and l keys in your tree node.

How it works

Since NERDTree has keymap API, you can implement your own keymap.

Refer to NERDTree's ui_glue.vim

(inspired from ranger)

About

add ranger-like key binding to NERDTree

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published