Bug 1176367

Summary: Leading slash when opening local path with vim fails to start Netrw dir browsing plugin
Product: Red Hat Enterprise Linux 7 Reporter: rob
Component: vimAssignee: Zdenek Dohnal <zdohnal>
Status: CLOSED NEXTRELEASE QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.0CC: dhorak, ohudlick, rob, thozza
Target Milestone: rcKeywords: FastFix, Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-17 15:59:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description rob 2014-12-21 01:25:57 UTC
Description of problem:
When passing a directory string including leading-slash to vim (e.g. '$ vim /etc/') should open a directory listing provided by the Netrw plugin.
Instead vim states "Illegal file name" and fails to open a directory listing

Version-Release number of selected component (if applicable):
7.4.160-1.el7

How reproducible:
Every time

Steps to Reproduce:
1. With at least the below packages installed:
vim-common.x86_64                       2:7.4.160-1.el7                @base
vim-enhanced.x86_64                     2:7.4.160-1.el7                @base
vim-filesystem.x86_64                   2:7.4.160-1.el7                @base
vim-minimal.x86_64                      2:7.4.160-1.el7                @anaconda

Create a simple directory with files:

$ mkdir ~/testvim
$ touch ~/testvim/somefiles{1..5}

2. Attempt to open the ~/testvim directory for browsing within vim

$ vim ~/testvim/

Returns the error:
"~/testvim/" Illegal file name

The Netrw browsing panel is NOT presented.

3. Attempt without a leading slash WILL work:

$ cd ~/
$ vim testvim/

The Netrw browsing panel IS presented showing the five files

Actual results:
Netrw directory browser is NOT shown


Expected results:
Netrw directory browser IS shown

Additional info:
Also present in Fedora release 20 (Heisenbug) (F21 untested)

Comment 2 Karsten Hopp 2015-03-03 10:55:11 UTC
*** Bug 1126479 has been marked as a duplicate of this bug. ***

Comment 9 Zdenek Dohnal 2019-05-17 15:59:11 UTC
This bug was evaluated by the sub-system and was not considered as a priority for the release, so it's being closed now as WONTFIX. Feel free to re-open the bug if there is a business reason to deliver a fix for this issue.

The issue is fixed in RHEL 8.