W dniu poniedziałek, 13 listopada 2017 16:08:18 UTC+1 użytkownik DrChip napisał:
> jim jammer wrote:
> >
> > How to replicate:
> > Open a file in vim, either command
> > |vim filename.ext|
> > or from vim
> > |:e filename.ext|
> > Open netrw explorer in vertical split
> > |:Vex|
> > Choose a directory and open it by pressing |<enter>|
> >
> > your buffer containing filename.ext is automatically deleted and the
> > window is closed. 99% sure this is a bug with netrw but I don't know
> > where their issues are tracked.
> >
> > OS: windows, both vim and gvim behave the same
> > Vim Version: Various versions of 8, lately using nightly builds,
> > present in 8.0.1130
> >
> >
> I am unable to duplicate this problem; I'm using Scientific Linux, vim
> 8.0.1257.
> 
> So, please refer to the directions in :help netrw-debug, generate a
> trace, and send it on to me.
> 
>  * run it with:   vim -u netrw.vimrc  (see attached)
>  * please use :Dsep after each command that you type (it helps me
> delineate what netrw did after each command)
> 
> Thank you!
> Chip Campbell

I was not able to reproduce this in provided way too.  But I noticed that with 
vim it happens all the time using below commands:

$ vim test.file
:Vexp
Enter any directory

Chip,
I tried to follow netrw-debug but somehow it just saved window output only 
which is no much of a use. I'm attaching some debug from vim. 

I run vim with 
vim -u netrw.vimrc --noplugins -i NONE

netrw.vimrc attached too.

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
chdir(c:\Users\pbugala\Downloads)
Szukanie "bitmaps/vim.ico" w 
"C:\Users\pbugala/vimfiles,c:\software\vim/vimfiles,c:\software\vim\vim80,c:\software\vim/vimfiles/after,C:\Users\pbugala/vimfiles/after"
Szukanie "C:\Users\pbugala/vimfiles\bitmaps/vim.ico"
Szukanie "c:\software\vim/vimfiles\bitmaps/vim.ico"
Szukanie "c:\software\vim\vim80\bitmaps/vim.ico"
Szukanie "c:\software\vim/vimfiles/after\bitmaps/vim.ico"
Szukanie "C:\Users\pbugala/vimfiles/after\bitmaps/vim.ico"
not found in 'runtimepath': "bitmaps/vim.ico"
wczytywanie "netrw.vimrc"
Szukanie "plugin/netrwPlugin.vim" w 
"C:\Users\pbugala/vimfiles,c:\software\vim/vimfiles,c:\software\vim\vim80,c:\software\vim/vimfiles/after,C:\Users\pbugala/vimfiles/after"
Szukanie "C:\Users\pbugala/vimfiles\plugin/netrwPlugin.vim"
Szukanie "c:\software\vim/vimfiles\plugin/netrwPlugin.vim"
Szukanie "c:\software\vim\vim80\plugin/netrwPlugin.vim"
wiersz 3: wczytywanie "c:\software\vim\vim80\plugin\netrwPlugin.vim"
skończono wczytywanie c:\software\vim\vim80\plugin\netrwPlugin.vim
kontynuacja w c:\Users\pbugala\Downloads\netrw.vimrc
finished sourcing netrw.vimrc
"netrw.vimrc" 
"netrw.vimrc" [unix] 4L, 102C
Executing BufEnter Auto commands for "*"
autocommand sil call s:LocalBrowse(expand("<amatch>"))

Executing VimEnter Auto commands for "*"
autocommand sil call s:VimEnter(expand("<amatch>"))


Searching for "autoload/netrw.vim" in 
"C:\Users\pbugala/vimfiles,c:\software\vim/vimfiles,c:\software\vim\vim80,c:\software\vim/vimfiles/after,C:\Users\pbugala/vimfiles/after"
Searching for "C:\Users\pbugala/vimfiles\autoload/netrw.vim"
Searching for "c:\software\vim/vimfiles\autoload/netrw.vim"
Searching for "c:\software\vim\vim80\autoload/netrw.vim"
sourcing "c:\software\vim\vim80\autoload\netrw.vim"
finished sourcing c:\software\vim\vim80\autoload\netrw.vim
Executing WinEnter Auto commands for "*"
autocommand if &ft == "netrw"|call s:NetrwInsureWinVars()|endif

line 18: sourcing "c:\software\vim\vim80/.netrwhist"
finished sourcing c:\software\vim\vim80/.netrwhist
continuing in function 
netrw#Explore[220]..netrw#LocalBrowseCheck[23]..<SNR>3_NetrwBrowse[16]..<SNR>3_NetrwBookHistRead
chdir(c:/Users/pbugala/Downloads)
c:\Users\pbugala\Downloads
Searching for "filetype.vim" in 
"C:\Users\pbugala/vimfiles,c:\software\vim/vimfiles,c:\software\vim\vim80,c:\software\vim/vimfiles/after,C:\Users\pbugala/vimfiles/after"
Searching for "C:\Users\pbugala/vimfiles\filetype.vim"
Searching for "c:\software\vim/vimfiles\filetype.vim"
Searching for "c:\software\vim\vim80\filetype.vim"
line 101: sourcing "c:\software\vim\vim80\filetype.vim"
Searching for "ftdetect/*.vim" in 
"C:\Users\pbugala/vimfiles,c:\software\vim/vimfiles,c:\software\vim\vim80,c:\software\vim/vimfiles/after,C:\Users\pbugala/vimfiles/after"
Searching for "C:\Users\pbugala/vimfiles\ftdetect/*.vim"
Searching for "c:\software\vim/vimfiles\ftdetect/*.vim"
Searching for "c:\software\vim\vim80\ftdetect/*.vim"
Searching for "c:\software\vim/vimfiles/after\ftdetect/*.vim"
Searching for "C:\Users\pbugala/vimfiles/after\ftdetect/*.vim"
not found in 'runtimepath': "ftdetect/*.vim"
finished sourcing c:\software\vim\vim80\filetype.vim
continuing in function 
netrw#Explore[220]..netrw#LocalBrowseCheck[23]..<SNR>3_NetrwBrowse[141]..<SNR>3_NetrwGetBuffer[54]..<SNR>3_NetrwEnew[23]..<SNR>3_NetrwOptionRestore
Searching for "c:\software\vim/vimfiles/after\filetype.vim"
Searching for "C:\Users\pbugala/vimfiles/after\filetype.vim"
Executing BufRead Auto commands for "*"
autocommand if !did_filetype() && expand("<amatch>") !~ g:ft_ignore_pat | 
runtime! scripts.vim | endif

Searching for "scripts.vim" in 
"C:\Users\pbugala/vimfiles,c:\software\vim/vimfiles,c:\software\vim\vim80,c:\software\vim/vimfiles/after,C:\Users\pbugala/vimfiles/after"
Searching for "C:\Users\pbugala/vimfiles\scripts.vim"
Searching for "c:\software\vim/vimfiles\scripts.vim"
Searching for "c:\software\vim\vim80\scripts.vim"
line 0: sourcing "c:\software\vim\vim80\scripts.vim"
finished sourcing c:\software\vim\vim80\scripts.vim
continuing in BufRead Auto commands for "*"
Searching for "c:\software\vim/vimfiles/after\scripts.vim"
Searching for "C:\Users\pbugala/vimfiles/after\scripts.vim"
Executing BufRead Auto commands for "*vimrc*"
autocommand call s:StarSetf('vim')

Executing BufRead Auto commands for "*"
autocommand if !did_filetype() && expand("<amatch>") !~ g:ft_ignore_pat    && 
(getline(1) =~ '^#' || getline(2) =~ '^#' || getline(3) =~ '^#'^I|| getline(4) 
=~ '^#' || getline(5) =~ '^#') |   setf FALLBACK conf | endif

Executing BufLeave Auto commands for "*"
autocommand if &ft != "netrw"|let w:netrw_prvfile= expand("%:p")|endif

Executing BufEnter Auto commands for "*"
autocommand sil call s:LocalBrowse(expand("<amatch>"))

"~\Downloads\" [Not edited] --No lines in buffer--
No matching autocommands
Pattern not found: ^$
Pattern not found: ^\d\{3}˙\d\{3}\/
Pattern not found: \.h$
Pattern not found: ^\d\{3}˙\d\{3}\/
Pattern not found: \.c$
Pattern not found: ^\d\{3}˙\d\{3}\/
Pattern not found: \.cpp$
Pattern not found: ^\d\{3}˙\d\{3}\/
Pattern not found: \.o$
Pattern not found: ^\d\{3}˙\d\{3}\/
Pattern not found: \.obj$
Pattern not found: ^\d\{3}˙\d\{3}\/
Pattern not found: \.info$
Pattern not found: ^\d\{3}˙\d\{3}\/
Pattern not found: ^\d\{3}˙\d\{3}\/
Pattern not found: \.bak$
Pattern not found: ^\d\{3}˙\d\{3}\/
Pattern not found: \~$
Pattern not found: ^\d\{3}˙\d\{3}\/
Error detected while processing function 
netrw#Explore[220]..netrw#LocalBrowseCheck[23]..<SNR>3_NetrwBrowse[252]..<SNR>3_PerformListing[231]..<SNR>3_NetrwWideListing:
line   67:
E31: No such mapping
Error detected while processing function 
netrw#Explore[220]..netrw#LocalBrowseCheck[23]..<SNR>3_NetrwBrowse[252]..<SNR>3_PerformListing[231]..<SNR>3_NetrwWideListing:
line   70:
E31: No such mapping
Pattern not found: @$
chdir(c:/Users/pbugala/Downloads)
c:\Users\pbugala\Downloads
 

No matching autocommands
chdir(c:/Users/pbugala/Downloads)
c:\Users\pbugala\Downloads
chdir(c:/Users/pbugala/Downloads)
c:\Users\pbugala\Downloads
Executing BufLeave Auto commands for "*"
autocommand if &ft != "netrw"|let w:netrw_prvfile= expand("%:p")|endif

Executing BufEnter Auto commands for "*"
autocommand sil call s:LocalBrowse(expand("<amatch>"))

"~\Downloads\MaintenancePage\" [Not edited] --No lines in buffer--
"~\Downloads\MaintenancePage\" [Not edited] --No lines in buffer--
Executing BufLeave Auto commands for "*"
autocommand if &ft != "netrw"|let w:netrw_prvfile= expand("%:p")|endif

chdir(c:\Users\pbugala\Downloads)
Executing WinEnter Auto commands for "*"
autocommand if &ft == "netrw"|call s:NetrwInsureWinVars()|endif

Executing BufEnter Auto commands for "*"
autocommand sil call s:LocalBrowse(expand("<amatch>"))

No matching autocommands
Pattern not found: ^$
Pattern not found: ^\d\{3}˙\d\{3}\/
Pattern not found: \.h$
Pattern not found: ^\d\{3}˙\d\{3}\/
Pattern not found: \.c$
Pattern not found: ^\d\{3}˙\d\{3}\/
Pattern not found: \.cpp$
Pattern not found: ^\d\{3}˙\d\{3}\/
Pattern not found: \.o$
Pattern not found: ^\d\{3}˙\d\{3}\/
Pattern not found: \.obj$
Pattern not found: ^\d\{3}˙\d\{3}\/
Pattern not found: \.info$
Pattern not found: ^\d\{3}˙\d\{3}\/
Pattern not found: \.swp$
Pattern not found: ^\d\{3}˙\d\{3}\/
Pattern not found: \.bak$
Pattern not found: ^\d\{3}˙\d\{3}\/
Pattern not found: \~$
Pattern not found: ^\d\{3}˙\d\{3}\/
Error detected while processing function 
netrw#LocalBrowseCheck[23]..<SNR>3_NetrwBrowse[252]..<SNR>3_PerformListing[231]..<SNR>3_NetrwWideListing:
line   67:
E31: No such mapping
Error detected while processing function 
netrw#LocalBrowseCheck[23]..<SNR>3_NetrwBrowse[252]..<SNR>3_PerformListing[231]..<SNR>3_NetrwWideListing:
line   70:
E31: No such mapping
Pattern not found: @$

Executing VimLeave Auto commands for "*"
autocommand call s:NetrwBookHistSave()

".netrwhist" [Not edited] --No lines in buffer--
"c:\software\vim\vim80/.netrwhist" 2L, 57C written

Attachment: netrw.vimrc
Description: Binary data

Reply via email to