A plugin that show the current file on NERDtree
-
Pathogen
git clone https://github.com/unkiwii/vim-nerdtree-sync.git ~/.vim/bundle/vim-nerdtree-sync
-
vim-plug
Plug 'unkiwii/vim-nerdtree-sync'
-
NeoBundle
NeoBundle 'unkiwii/vim-nerdtree-sync'
-
Vundle
Plugin 'unkiwii/vim-nerdtree-sync'
After open a file, if NERDTree is open, it will show that file in NERDTree window. If you have cursorline
enabled it will also highlight the file.
If you don't have cursorline
setted or don't want to set it you can configure the plugin to highlight the file:
let g:nerdtree_sync_cursorline = 1
Or configure NERDTree to always show the cursorline:
let g:NERDTreeHighlightCursorline = 1
That will run setlocal cursorline
in the NERDTree window
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2017 Lucas Gabriel Sanchez <unkiwii@gmail.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.