I am Neovim user and have serious problem with netrw

I find netrw has a bug

1st picture

when trying to open the file, at first it only shows an empty buffer(1st picture), and right bottom corner, you can see [noperm] message, I can not figure out the meaning of it

when trying open twice(2nd picture), then netrw correctly open a file. It's kinda nervous to me... whenever I open file , I should open twice,. It usually occur when open a file from different directory

for example,

  1. If first time I'm in src/components/App.tsx
  2. then I want to open src/tsconfig.json(I mean path of directory changed),
  3. then it open empty buffer not open actual content

2nd picture what is this problem?

  • 1
    Welcome to Vi and Vim!
    – filbranden
    Sep 15 '20 at 16:31
  • @filbranden Hello, thanks for welcome
    – stefancho
    Sep 15 '20 at 16:51
  • Does this happen with vim -u NONE or -Nu NONE?
    – D. Ben Knoble
    Sep 16 '20 at 12:15
  • @D.BenKnoble Sorry too late, I test your command, but In this case, :Explore(for open netrw) is not working, it shows error vim not an editor command explore so I couldn't test anything.
    – stefancho
    Oct 3 '20 at 11:02
  • Sorry, try vim -Nu NORC (I forgot that NONE skips plugins)
    – D. Ben Knoble
    Oct 3 '20 at 15:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.