proteanthread / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

netrw plugin NetrwTreeListing #140

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. command line $ echo "test" > text.txt
2. $ vi text.txt
""" in VIM - Vi IMproved 7.3 Included patches: 1-1136 (details in attachment)
2. :Explore in NetrwTreeListing
3. Search for text.txt and open it
4. The file correctly has content "test"
5. :Explore     open Explore in NetrwTreeListing like in step 2
6. Again search and open text.txt like in 3
7. The file is empty!

What is the expected output? What do you see instead?
NetrwTreeListing deleted the conntent of sample file text.txt

What version of the product are you using? On what operating system?
I am using DEVELOPMENT VERSION OF VIM. 
Currently, I can confirmed it from tag v7-3-989 for changeset cd005ab15ef3
to tag v7-3-1136 for changeset 343d09006056.

Original issue reported on code.google.com by ondrej.platek@gmail.com on 7 Jun 2013 at 8:55

Attachments:

GoogleCodeExporter commented 9 years ago
I cannot duplicate this issue.  Using  vim -u simple.vimrc, which is:

set nocp
filetype plugin on
let g:netrw_liststyle    = 3  " tree

I used vim 7.3.1237, netrw v150b (see 
http://www.drchip.org/astronaut/vim/index.html#NETRW).

Original comment by drc...@campbellfamily.biz on 25 Jun 2013 at 3:32

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
True, with you vimrc I can not replicate it too.

Sorry, for reporting it.
I will try to locate the problem.

Original comment by ondrej.platek@gmail.com on 30 Jun 2013 at 4:47

GoogleCodeExporter commented 9 years ago
Hi,
I found the minimal .vimrc where it fails:
Store this into simple.vimrc

set nocp
filetype plugin on
let mapleader=","
let g:mapleader=","
let g:netrw_liststyle    = 3  " tree

and run steps 1-6 and REPEAT steps 5-6 (the same as 2-3) for THIRD time.
I have no clue whi mapleader "," break this.

Original comment by ondrej.platek@gmail.com on 30 Jun 2013 at 8:56

GoogleCodeExporter commented 9 years ago
Btw. you can write me on the ondrej dot platek at gmail dot com.
If you need quicker answer from me.

And I found even simpler simple.vimrc 
and you need to run :Explore and open text.txt 3 times!
echo test > text.txt
vim -u simple.vimrc text.txt
" run 3 times :Ex   and then open text.txt
" the content of simple.vimrc :

set nocp
filetype plugin on
let something_other = "."
let g:netrw_liststyle    = 3  " tree

Original comment by ondrej.platek@gmail.com on 30 Jun 2013 at 9:21

GoogleCodeExporter commented 9 years ago
I can confirm this issue. Vim 7.4.26 MS-Windows 32-bit (console and gvim)

It is not related to mapleader. Necessary and sufficient steps to reproduce:

vim -u NONE -N -c 'runtime plugin/netrwPlugin.vim | let g:netrw_liststyle = 3'

:Explore

Open any file (say .bash_profile) using <enter> in netrw.

Return to netrw using :Rexplore

In netrw explorer, open the *same* file using <enter>.

Return to netrw using :Rexplore again.

For a third time, open the *same* file using <enter>.

The buffer is now blank. User must undo the change.

Original comment by jke...@connectwise.com on 6 Nov 2013 at 8:28

GoogleCodeExporter commented 9 years ago
Hello!

Please try v150i of netrw from my website: 
http://wwww.drchip.org/astronaut/vim/index.html#NETRW.

Regards,
C Campbell

Original comment by drc...@campbellfamily.biz on 9 Nov 2013 at 5:29

GoogleCodeExporter commented 9 years ago
Thanks. The website says:

Updated Nov 09, 2013 (v150i)

But but netrw.vba says:

let g:loaded_netrwPlugin = "v150h"

I downloaded from this URL: 

http://www.drchip.org/astronaut/vim/vbafiles/netrw.vba.gz

And compared it to the source of the previous version from this mirror:

https://github.com/eiginn/netrw

And there are no differences.

I tried this anyway:

:NetrwClean!
:e ~/Downloads/netrw.vba
:UseVimball ~/.vim/

But the issue persists.

Original comment by jke...@connectwise.com on 11 Nov 2013 at 6:47

GoogleCodeExporter commented 9 years ago
Try again -- I loaded the file onto my website again; I've downloaded it via 
ftp and via my browser, and was getting v150j.  Make sure your browser's cache 
history is cleared -- sometimes browsers "save time" by not bothering to 
actually download files when they have a cached copy.

Regards,
C Campbell

Original comment by drc...@campbellfamily.biz on 12 Nov 2013 at 2:47

GoogleCodeExporter commented 9 years ago
Thanks, it seems to be fixed!

Original comment by jke...@connectwise.com on 12 Nov 2013 at 5:30

GoogleCodeExporter commented 9 years ago
Will this be merged to Vim trunk any time soon?

Original comment by jke...@connectwise.com on 12 Nov 2013 at 6:17

GoogleCodeExporter commented 9 years ago
I let it stay on my website for some time, collecting bug reports, fixing 
problems, and occasionally extending it.  After its "properly aged", I send it 
on to Bram.  I've already got one bug report against v150j (which I won't be 
likely to be able to address for a couple of days).

Original comment by drc...@campbellfamily.biz on 12 Nov 2013 at 7:19