You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i'm using vim with nerdtree and tagbar.
with both nerdtree and tagbar toggled on, when i quit editing my last c++ source file, there's this error.
Do not know whether it's related to nerdtree, tagbar, or vim.
Error detected while processing WinEnter Autocommands for "*"..function <SNR>38_HandleOnlyWindow[13]..<SNR>38_CloseWindow:
line 21:
E1312: Not allowed to change the window layout in this autocmd
this is ~/.vimrc:
set expandtab
set hlsearch
set nowrapscan
set shiftwidth=4
set smartindent
set tabstop=4
syntax off
" NERDTree
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
autocmd BufEnter * if winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
autocmd VimEnter * NERDTree
let g:NERDTreeNodeDelimiter = "\u00a0"
nnoremap <leader>n :NERDTreeFocus<CR> " \ - n
nnoremap <C-n> :NERDTree<CR> " Ctrl - n
nnoremap <C-t> :NERDTreeToggle<CR> " Ctrl - t
nnoremap <C-f> :NERDTreeFind<CR>
" tagbar
filetype on " Tagbar: Filetype detection is turned off, skipping plugin
let g:tagbar_sort = 0 " order of position
nmap <F8> :TagbarToggle<CR>
The text was updated successfully, but these errors were encountered:
I'm guessing you are running vim-9.0. This is a new issue that has been reported in #851. Some of the auto-command behavior has changed with vim-9.0. Unfortunately I haven't been able to come up with a good workaround yet (just haven't been able to spend time on it). We are open to PRs if anyone else has any ideas or options that will work.
Hi, when I open both nerdtree and tagbar in vim and then :quit, it still needs this in ~/.vimrc:
autocmd QuitPre * qall
Or, it reports this:
Error detected while processing WinEnter Autocommands for "*"..function <SNR>40_HandleOnlyWindow[13]..<SNR>40_CloseWindow:
line 21:
E1312: Not allowed to change the window layout in this autocmd
Hi, i'm using vim with nerdtree and tagbar.
with both nerdtree and tagbar toggled on, when i quit editing my last c++ source file, there's this error.
Do not know whether it's related to nerdtree, tagbar, or vim.
https://github.com/preservim/nerdtree ,
this is ~/.vimrc:
The text was updated successfully, but these errors were encountered: