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

Duplicate files sometimes show #21

Closed
janko-m opened this Issue Apr 3, 2014 · 12 comments

Comments

Projects
None yet
6 participants
@janko-m
Copy link

janko-m commented Apr 3, 2014

So far it happens only when there is 1 file in the directory. I go that directory, "enter" on the file, then "-" to go back to the directory, and now that file is displayed twice in the tree.

@justinmk

This comment has been minimized.

Copy link

justinmk commented Apr 3, 2014

I'm also seeing this, haven't had time to nail down minimum steps to reproduce. It's a netrw issue of course (saw it long before vinegar).

@janko-m

This comment has been minimized.

Copy link

janko-m commented Apr 3, 2014

  • $ mkdir foo && cd foo
  • $ touch foo.html
  • $ vim
  • "-"
  • "Enter"
  • "-"

Tim, if this indeed is a netrw issue, then feel free to close this.

@tpope

This comment has been minimized.

Copy link
Owner

tpope commented Apr 3, 2014

Can't reproduce, and it has to be netrw, yeah. Biggest disappointment of vinegar is that netrw is riddled with bugs.

@tpope tpope closed this Apr 3, 2014

@tjbrn

This comment has been minimized.

Copy link

tjbrn commented Jul 15, 2016

Apparently the problem only occurs when the set hidden option is set.

out 04d

@nomasprime

This comment has been minimized.

Copy link

nomasprime commented Jul 29, 2016

Having same problem, what @jjbruno said.

@tpope

This comment has been minimized.

Copy link
Owner

tpope commented Jul 30, 2016

Can you see if it's related to g:netrw_banner? I have a hunch it is.

@nomasprime

This comment has been minimized.

Copy link

nomasprime commented Jul 31, 2016

Thanks @tpope 🙌

I've put let g:netrw_banner=0 in my config; will let you know if it resolves issue.

@tpope

This comment has been minimized.

Copy link
Owner

tpope commented Aug 2, 2016

Vinegar already does that, and my hunch is that you should try with 1 to restore the netrw default.

@janko-m

This comment has been minimized.

Copy link

janko-m commented Aug 2, 2016

This hasn't been happening to me for a while now, I'm not sure what changed, here is my Vim version:

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 23 2014 15:19:37)
MacOS X (unix) version
Included patches: 1-258
Compiled by Homebrew
Huge version with MacVim GUI.  Features included (+) or not (-):
+acl             +file_in_path    +mouse_sgr       +tag_binary
+arabic          +find_in_path    -mouse_sysmouse  +tag_old_static
+autocmd         +float           +mouse_urxvt     -tag_any_white
+balloon_eval    +folding         +mouse_xterm     +tcl
+browse          -footer          +multi_byte      +terminfo
++builtin_terms  +fork()          +multi_lang      +termresponse
+byte_offset     +fullscreen      -mzscheme        +textobjects
+cindent         -gettext         +netbeans_intg   +title
+clientserver    -hangul_input    +odbeditor       +toolbar
+clipboard       +iconv           +path_extra      +transparency
+cmdline_compl   +insert_expand   +perl            +user_commands
+cmdline_hist    +jumplist        +persistent_undo +vertsplit
+cmdline_info    +keymap          +postscript      +virtualedit
+comments        +langmap         +printer         +visual
+conceal         +libcall         +profile         +visualextra
+cryptv          +linebreak       +python          +viminfo
+cscope          +lispindent      -python3         +vreplace
+cursorbind      +listcmds        +quickfix        +wildignore
+cursorshape     +localmap        +reltime         +wildmenu
+dialog_con_gui  -lua             +rightleft       +windows
+diff            +menu            +ruby            +writebackup
+digraphs        +mksession       +scrollbind      -X11
+dnd             +modify_fname    +signs           -xfontset
-ebcdic          +mouse           +smartindent     +xim
+emacs_tags      +mouseshape      -sniff           -xsmp
+eval            +mouse_dec       +startuptime     -xterm_clipboard
+ex_extra        -mouse_gpm       +statusline      -xterm_save
+extra_search    -mouse_jsbterm   -sun_workshop    -xpm
+farsi           +mouse_netterm   +syntax          
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/Applications/MacVim.app/Contents/Resources/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe  -DMACOS_X_UNIX  -I/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -fno-strict-aliasing -fno-common -dynamic -I/usr/local/include -I/usr/local/opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1     -I/System/Library/Frameworks/Tcl.framework/Headers  -D_REENTRANT=1  -D_THREAD_SAFE=1  -D_DARWIN_C_SOURCE=1  
Linking: clang   -L. -L/usr/local/lib -L. -L/usr/local/lib -L/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -framework CoreFoundation -lpython2.7 -L/usr/local/lib -o Vim -framework Cocoa -framework Carbon       -lm  -lncurses -liconv -framework Cocoa   -fstack-protector  -L/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE -lperl -framework Python  -F/System/Library/Frameworks -framework Tcl -framework CoreFoundation -framework Ruby   
@nomasprime

This comment has been minimized.

Copy link

nomasprime commented Aug 2, 2016

Odd thing is, setting to 0 seems to have fixed it. I'll wait to confirm and then try 1.

@nomasprime

This comment has been minimized.

Copy link

nomasprime commented Aug 3, 2016

It happened again so I switched to 1. Now I have the netrw info — which I don't mind too much.

@tpope, what made you think it's related to banner?

@julien

This comment has been minimized.

Copy link

julien commented Nov 24, 2016

I'm having the same issue with vim 8.0 but in my case it seems it was related to g:netrw_fastbrowse (which I had set to 2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment