Skip to content
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

Netrw can't properly open symlinks with netrw_liststyle=3 #71

Open
saccarosium opened this issue Jan 18, 2025 · 0 comments
Open

Netrw can't properly open symlinks with netrw_liststyle=3 #71

saccarosium opened this issue Jan 18, 2025 · 0 comments
Labels
bug issues reporting wrong behavior vim vim specific issues

Comments

@saccarosium
Copy link
Owner

Problem

When opening a symlink with netrw and netrw_liststyle=3, the path of the file will be FILENAME/FILENAME instead of FILENAME.

Steps to reproduce

mkdir foo && echo "Hello from bar" > foo/bar
ln -s foo/bar .
cat <<EOF > min.vim
let netrw_liststyle=3
set nocompatible   " needed for vim
filetype plugin on " needed for vim
EOF
nvim --clean -u min.vim .

Now try to open bar. Netrw will try to open bar/bar which obviously doesn't exist

Expected behavior

Open bar

Neovim version (nvim -v)

v0.9.4

Vim (not Nvim) behaves the same?

yes, vim 9.0.2116

Operating system/version

NixOS

Terminal name/version

XTerm(388)

$TERM environment variable

xterm

Installation

NixPkgs

original issue: neovim/neovim#27301

@saccarosium saccarosium added bug issues reporting wrong behavior vim vim specific issues labels Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issues reporting wrong behavior vim vim specific issues
Projects
None yet
Development

No branches or pull requests

1 participant