Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vim-plug on-demand loading + nerdtree #180

Open
fcying opened this issue May 23, 2020 · 1 comment
Open

vim-plug on-demand loading + nerdtree #180

fcying opened this issue May 23, 2020 · 1 comment

Comments

@fcying
Copy link

fcying commented May 23, 2020

As long as i have used NERDTreeToggle with On-demand loading once, vim-dirvish can't work.
used NERDTreeToggle not with On-demand loading work fine.

reproduce:

$vim
:NERDTreeToggle<CR>
open file
-

Error detected while processing function dirvish#open[39]..<SNR>47_open_dir[45]..<SNR>47_buf_render:
line   16:
E21: Cannot make changes, 'modifiable' is off:   silent keepmarks keepjumps %delete

vimrc

set nocompatible
set encoding=utf-8
set mouse=n

source ~/.vim/plugged/vim-plug/plug.vim
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree', {'on':['NERDTreeToggle']}    "work failed
"Plug 'scrooloose/nerdtree'                      "work fine
Plug 'justinmk/vim-dirvish'
nmap <leader>nt :NERDTreeToggle<cr>
call plug#end()
delc PlugUpgrade

filetype plugin indent on
syntax on

vim version:

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled May 12 2020 11:19:10)
Included patches: 1-740
@justinmk
Copy link
Owner

swapping directory plugins on/off isn't going to be pretty, because each one installs a handler for directory-like paths...

@justinmk justinmk changed the title can't work with vim-plug On-demand loading + nerdtree vim-plug on-demand loading + nerdtree Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants