tpope / vim-vinegar

vinegar.vim: Combine with netrw to create a delicious salad dressing
https://www.vim.org/scripts/script.php?script_id=5671
2.23k stars 87 forks source link

noob here, how do I go up a directory, I want to go to the parent of the directory #134

Closed ghost closed 1 year ago

ghost commented 1 year ago

I tried using -, but idk if it is working like it is described

I tried troubleshooting it and I got this output from doing :verbose map -

n  -            @<Plug>VinegarUp                                                                                                            
        Last set from ~/.local/share/nvim/site/pack/packer/start/vim-vinegar/plugin/vinegar.vim line 125
n  -             <Plug>VinegarUp
        Last set from ~/.local/share/nvim/site/pack/packer/start/vim-vinegar/plugin/vinegar.vim line 32

i cannot find any other way to go up a directory.

I'm using nvim and I am on linux.

ghost commented 1 year ago

I figured it out, I'm using qmk to remap my keys and KC_MINS behaves normally as expected, but when you swap it out for KC_PMNS, it doesn't register the command to go up a directory in netrw, so to solve this i threw in a vim.cmd([[ au FileType netrw nmap a - ]]) in my after/ftplugin/netrw.lua