Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Spurious n gets appended as prefix to name of file before opening it

Open
#3 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
vim
Domain
tooling

Research direction

Reproduce the issue in vim-tree using ~/Desktop/textfiles/grid-typesetting/ and the provided macOS, ARM64, iTerm2, Neovim, and Vim context. Start by tracing the file-opening path used when the spurious “n” is added, then verify that the intended file opens without the prefix in both Vim and Neovim.

Written by the indexing model from the issue text.

Description

A spurious n gets appended as prefix to the file name before opening it, hence not really opens the intended file.

This does not happen from all directories. It happens in a git directory I have on my system: ~/Desktop/textfiles/grid-typesetting/. All important files worked upon in the video below are in that directory:

https://user-images.githubusercontent.com/25681815/120881923-5f00a000-c589-11eb-989b-f94e25f99366.mp4

Nvim (same problem also occurs on latest vim):

NVIM v0.5.0-dev+nightly-298-g0a653f7ab
Build type: Release
LuaJIT 2.1.0-beta3

System:

macOS BigSur 11.4 ARM64 (Apple M1 chip)

Terminal (didn't try on other terminals):

iTerm2 (3.4.8. i.e. latest)
Dominant language
Vim Script
Stars
60
Forks
2
PR merge metrics
No merged PRs in 30d

Getting set up

We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mhinz/vim-tree

All issues in mhinz/vim-tree

Similar issues

More DevTools issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.