Problem: vim does not open local directory.
Steps to reproduce:
1. run
$ vim /etc/
Expected results:
use netrw plug-in to list directory content.
Actual results:
1. show error message
"/etc/" Illegal file name
2. buffer remains empty.
--
--
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
diff -r 2f856c7c1d43 runtime/plugin/netrwPlugin.vim
--- a/runtime/plugin/netrwPlugin.vim Sun Dec 15 10:02:33 2013 +0100
+++ b/runtime/plugin/netrwPlugin.vim Sun Dec 29 05:59:16 2013 +0700
@@ -92,9 +92,6 @@
" unfortunate interaction -- debugging calls can't be used here;
" the BufEnter event causes triggering when attempts to write to
" the DBG buffer are made.
- if !exists("s:vimentered")
- return
- endif
" call Decho("s:LocalBrowse(dirname<".a:dirname.">){")
" echomsg "dirname<".a:dirname.">"
if has("amiga")
@@ -119,7 +116,6 @@
fun! s:VimEnter(dirname)
" call Decho("VimEnter(dirname<".a:dirname.">){")
let curwin = winnr()
- let s:vimentered = 1
windo if a:dirname != expand("%")|call s:LocalBrowse(expand("%:p"))|endif
exe curwin."wincmd w"
" call Decho("|return VimEnter }")