clip_path is a NERDTree plugin that adds a menu item to copy the full path of the selected file or folder to the clipboard.
Use the following commands:
cd ~/.vim/bundle
git clone https://github.com/mortonfox/nerdtree-clip.git
Add the following to your vimrc:
Plugin 'mortonfox/nerdtree-clip'
Install with :PluginInstall
.
Copy clip_path.vim
to ~/.vim/nerdtree_plugin/
(*nix)
or ~/vimfiles/nerdtree_plugin
(Windows).
In the NERDTree window, select the desired folder or file and type m
and b
to copy its path to the clipboard.