Vim

Vim: vim-vinegar

vim-vinegar provides a thin layer to enhance the usability of netrw.

- opens the parent directory of the file you are editing in a vertical split above.

Now, - was a key I liked using (it moves you to the first non-space character on the line above). So I mapped the \ key to what - does by default using this mapping:

nnoremap \ :normal! -<cr>

Now, \ moves to the first non-space character on the line above and <cr> moves to the first non-space character on the line below. These keys are adjacent so that works quite nicely. This won’t work for everyone as \ is the default leader key, but I use <space> as my leader key so it works for me.

vim-vinegar commands:

Plus you get all the regular netrw commands, some of which I repeat here for convenience:

Resources

:help vinegar

Source: https://github.com/tpope/vim-vinegar

Tools

Web

Languages

Data