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
Operating System: manjaro linux (kernel 5.15.102-1-MANJARO) on xfce 4.18
Vim/Neovim version :version:
VIM 9.0 (2022 Jun 28, compiled Feb 11 2023 18:31:20)
Included patches: 1-1302
Compiled by Arch Linux
NERDTree version, found on first line of quickhelp ?: 6.10.16
minimal .vimrc file that will reproduce the issue.
setnocompatiblesetnusetnobombsetwrapsetlinebreaksettextwidth=80setcolorcolumn=80setbackspace=2setautoindentsethistory=50setrulersetshowcmdsetwildmenusetttimeoutsetttimeoutlen=100setdisplay=truncate
" return '[\s]' if trailing whitespace is detected; return '' otherwisefunctionStatuslineTrailingSpaceWarning()
if!exists("b:statusline_trailing_space_warning")
if!&modifiableletb:statusline_trailing_space_warning=''returnb:statusline_trailing_space_warningendififsearch('\s\+$', 'nw') !=0letb:statusline_trailing_space_warning='[\s]'elseletb:statusline_trailing_space_warning=''endifendifreturnb:statusline_trailing_space_warningendfunction" return the syntax highlight group under the cursor ''functionStatuslineCurrentHighlight()
let name =synIDattr(synID(line('.'),col('.'),1),'name')
if name ==''return''elsereturn'[' . name . ']'endifendfunction" return '[&et]' if &et is set wrong highlight group under the cursor ''functionStatuslineCurrentHightlight()
let name =synIDattr(synID(line('.'),col('.'),1),'name')
if name ==''return''elsereturn'[' . name . ']'endifendfunction" return '[mixed-indenting]' if spaces and tabs are used to indent" return an empty string if everything is finefunctionStatuslineTabWarning()
if!exists("b:statusline_tab_warning")
letb:statusline_tab_warning=""if!&modifiablereturnb:statusline_tab_warningendiflettabs=search('^\t', 'nw') !=0" " find spaces that aren't used as alignment in the first indent" " columnlet spaces =search('^ \{' . &ts . ',}[^\t]', 'nw') !=0iftabs&& spaces
b:statusline_tab_warning='[mixed-indenting]'elseif (spaces &&!&et) || (tabs&& &et)
b:statusline_tab_warning='[%et]'endifendifreturnb:statusline_tab_warningendfunction" return a warning for "long lines" where "long" is either &textwidth or 80 (if" no &textwidth is set)" return '' if no long lines" return '[#x,my,$z]' if long lines are found, were x is the number of long" lines, y is the median length of the long lines and z is the length of the" longest linefunctionStatuslineLongLineWarning()
if!exists("b:statusline_long_line_warning")
if!&modifiableletb:statusline_long_line_warning=''returnb:statusline_long_line_warningendiflet long_line_lens =s:LongLines()
iflen(long_line_lens) > 0letb:statusline_long_line_warning="[" .
\ '#' . len(long_line_lens) . "," .
\ 'm' . s:Median(long_line_lens) . "," .
\ '$' . max(long_line_lens) . "]"elseletb:statusline_long_line_warning=""endifendifreturnb:statusline_long_line_warningendfunction" return a list containing the lengths of the long lines in this bufferfunctions:LongLines()
let threshold = (&tw ? &tw : 80)
let spaces =repeat("", &ts)
let long_line_lens = []
leti=1whilei<=line("$")
letlen=strlen(substitute(getline(i), '\t', spaces, 'g'))
iflen > threshold
calladd(long_line_lens, len)
endifleti+=1endwhilereturn long_line_lens
endfunctionfunctions:Median(nums)" find the median of the given array of numberslet nums =sort(a:nums)
letl=len(nums)
ifl%2==1leti= (l-1) / 2return nums[i]
elsereturn nums[l/ 2] + nums[(l /2) -1] / 2endifendfunctionsetcmdheight=1setlaststatus=2setstatusline=%-03.fsetstatusline+=%#warningmsg#" display a warning if fileformat isn't unixsetstatusline+=%{&ff!='unix'?'['.&ff.']':''}
setstatusline+=%*setstatusline+=%#warningmsg#" display a warning if file encoding isn't utf-8setstatusline+=%{(&fenc!='utf-8'&&&fenc!='')?'['.&fenc.']':''}
setstatusline+=%*setstatusline+=%h" help file flagsetstatusline+=%y" fivarypesetstatusline+=%r" read only flagsetstatusline+=%m" modified flag" let fugitive_statisline_string = fugitive#statusline()" set statusline+=fugitive_statisline_string" display a warning if &et is wrong, or we have mixed-indenting" set statusline+=%#error#" set statusline+=%{StatuslineTabWarning()}" set statusline+=%*setstatusline+=%{StatuslineTrailingSpaceWarning()}
setstatusline+=%{StatuslineLongLineWarning()}
setstatusline+=%#warningmsg#
setstatusline+=%#error#" display a warning if &paste is setsetstatusline+=%{&paste?'[paste]':''}
setstatusline+=%*setstatusline+=%=" left/right separatorsetstatusline+=%{StatuslineCurrentHighlight()}\ \ " current hightlightsetstatusline+=%c," cursor columnsetstatusline+=%l/%L " cursor line/total linessetstatusline+=\ %P" percent through file" recalculate the trailing whitespace warning when idle, and after savingautocmdcursorhold,bufwritepost*unlet!b:statusline_trailing_space_warning" recalculate the long line warning when idle and after savingautocmdcursorhold,bufwritepost*unlet!b:statusline_long_line_warningnoremap<Up><Nop>noremap<Down><Nop>noremap<Left><Nop>noremap<Right><Nop>vnoremap<Up><Nop>vnoremap<Down><Nop>vnoremap<Left><Nop>vnoremap<Right><Nop>inoremap<Up><Nop>inoremap<Down><Nop>inoremap<Left><Nop>inoremap<Right><Nop>inoremap<S-Left><Nop>map<F7>:tabp<CR>map<F8>:tabn<CR>map<F9>:tabnew<CR>setmouse-=afiletypedetectif &filetype=="python"settabstop=4setexpandtabsetshiftwidth=4elseif &filetype=="vim"settabstop=4setshiftwidth=4elseif &filetype=="html"|| &filetype=="css"settabstop=2setshiftwidth=2setnolinebreaksetcolorcolumn=140settextwidth=140setwrapendifcolorscheme default
callplug#begin()
Plug 'morhetz/gruvbox'
Plug 'mb6ockatf/citify'
Plug 'lervag/vimtex'
Plug 'sirver/ultisnips'
Plug 'preservim/nerdtree'
Plug 'dense-analysis/ale'callplug#end()
" PlugUpdate" PlugInstallcolorscheme gruvbox
setbg=dark
letg:tex_flavor='latex'letg:vimtex_view_method='zathura'letg:vimtex_quickfix_mode=0set conceallevel=1letg:tex_conceal='abdmg'letg:UltiSnipsExpandTrigger='<tab>'letg:UltiSnipsJumpForwardTrigger='<tab>'letg:UltiSnipsJumpBackwardTrigger='<s-tab>'functionPrepareBeforeWrite()
if &filetype=="python"%s/^ / /eendif%s/\s\+$//e%s/\^datetime\^/\=strftime("%c")/esetfenc=utf-8endfunctionaugroupPreWriteEditsautocmdBufWritePre*callPrepareBeforeWrite()
autocmdvimenter*++nestedcolo gruvbox
" Start NERDTree and put the cursor back in the other window.autocmdVimEnter* NERDTree | wincmdp" Exit Vim if NERDTree is the only window remaining in the only tab.autocmdBufEnter*iftabpagenr('$') ==1&&winnr('$') ==1&&\ exists('b:NERDTree') &&b:NERDTree.isTabTree() | quit | endif" Close the tab if NERDTree is the only window remaining in it.autocmdBufEnter*ifwinnr('$') ==1&&exists('b:NERDTree') &&\ b:NERDTree.isTabTree() | quit | endif" Open the existing NERDTree on each new tab.autocmdBufWinEnter*ifgetcmdwintype() =='' | silent NERDTreeMirror | endifaugroupENDsyntaxon
i really don't know why this happens, so i included the whole vimrc. sorry for this
Steps to Reproduce the Issue
open file with vim main.py
open other file in new tab
quit that second file with :wq or ZZ
get that error
Current Behavior (Include screenshots where appropriate.)
Expected Result
current tab is closed, both nerdtree and file windows are exited
The text was updated successfully, but these errors were encountered:
Environment
:version
:?
: 6.10.16i really don't know why this happens, so i included the whole vimrc. sorry for this
Steps to Reproduce the Issue
vim main.py
Current Behavior (Include screenshots where appropriate.)
Expected Result
current tab is closed, both nerdtree and file windows are exited
The text was updated successfully, but these errors were encountered: