preservim / nerdtree

A tree explorer plugin for vim.
Do What The F*ck You Want To Public License
19.6k stars 1.44k forks source link

Can not go '.. (up a dir)' after updating to 5.2 #1012

Closed erouvin closed 5 years ago

erouvin commented 5 years ago

Self-Diagnosis

Environment (for bug reports)

map :NERDTreeToggle

let NERDTreeShowHidden=1

" NERDTress File highlighting function! NERDTreeHighlightFile(extension, fg, bg, guifg, guibg) exec 'autocmd filetype nerdtree highlight ' . a:extension .' ctermbg='. a:bg .' ctermfg='. a:fg .' guibg='. a:guibg .' guifg='. a:guifg exec 'autocmd filetype nerdtree syn match ' . a:extension .' #^\s+.*'. a:extension .'$#' endfunction

call NERDTreeHighlightFile('jade', 'green', 'none', 'green', '#151515') call NERDTreeHighlightFile('ini', 'yellow', 'none', 'yellow', '#151515') call NERDTreeHighlightFile('md', 'blue', 'none', '#3366FF', '#151515') call NERDTreeHighlightFile('yml', 'yellow', 'none', 'yellow', '#151515') call NERDTreeHighlightFile('config', 'yellow', 'none', 'yellow', '#151515') call NERDTreeHighlightFile('conf', 'yellow', 'none', 'yellow', '#151515') call NERDTreeHighlightFile('json', 'yellow', 'none', 'yellow', '#151515') call NERDTreeHighlightFile('html', 'yellow', 'none', 'yellow', '#151515') call NERDTreeHighlightFile('styl', 'cyan', 'none', 'cyan', '#151515') call NERDTreeHighlightFile('css', 'cyan', 'none', 'cyan', '#151515') call NERDTreeHighlightFile('coffee', 'Red', 'none', 'red', '#151515') call NERDTreeHighlightFile('java', 'Red', 'none', 'red', '#151515') call NERDTreeHighlightFile('js', 'Red', 'none', '#ffa500', '#151515') call NERDTreeHighlightFile('php', 'Magenta', 'none', '#ff00ff', '#151515')

- Other NERDTree-dependent Plugins

Plugin 'VundleVim/Vundle.vim' Plugin 'morhetz/gruvbox' Plugin 'itchyny/lightline.vim' Plugin 'scrooloose/nerdtree' Plugin 'junegunn/fzf' Plugin 'junegunn/fzf.vim' Plugin 'danro/rename.vim' Plugin 'easymotion/vim-easymotion' Plugin 'terryma/vim-multiple-cursors' Plugin 'editorconfig/editorconfig-vim' Plugin 'airblade/vim-gitgutter' Plugin 'itchyny/vim-gitbranch' Plugin 'tpope/vim-surround' Plugin 'mattn/emmet-vim' Plugin 'scrooloose/syntastic' Plugin 'altercation/vim-colors-solarized' Plugin 'vim-airline/vim-airline' Plugin 'vim-airline/vim-airline-themes' Plugin 'valloric/youcompleteme' Plugin 'ryanoasis/vim-devicons' Plugin 'powerline/powerline-fonts' Plugin 'ryanoasis/nerd-fonts' Plugin 'nvie/vim-flake8' Plugin 'tpope/vim-fugitive' Plugin 'xuyuanp/nerdtree-git-plugin'



#### Steps to Reproduce the Issue
1. select '.. ( up a dir )' in nerdtree panel
2. Hit Enter <CR>

#### Current Result (Include screenshots where appropriate.)
Nothing happens

#### Expected Result
Directory change occurs in nerdtree panel as it did with the previous versions.
PhilRunninger commented 5 years ago

I will take a look at this. In the meantime, you could use u (g:NERDTreeMapUpDir) anywhere in the tree or o (g:NERDTreeMapActivateNode) on the .. ( up a dir ) line.