3

With the default file explorer (netrw) you can press x to open a file or directory with the system default application. Is there an easy way I can do the same with nerdTree? I can't find the option. Thanks.

3
  • 2
    You can maybe try gx since it's basic Vim functionality and I assume it's worth a shot.
    – 3N4N
    Apr 19, 2019 at 8:54
  • It works with the files (at least it did open firefox with .html files) so it's something but It would be great if it also worked with folders. Netrw opened nautilus when I executed folders.
    – Wylex
    Apr 19, 2019 at 9:01
  • Hmm. But I, and I think you too, have looked through the whole documentation of NERDTree. I guess you can ask the developers directly in their issue tracker
    – 3N4N
    Apr 19, 2019 at 13:32

1 Answer 1

5

In NERDTree, press m to bring up the NERDTree Menu, and then you should see an option, labeled o, to open the current node with the system editor associated with that file or directory. If that doesn't work for you, create an issue in the NERDTree repo.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.