vim-vinegar
vim-vinegar copied to clipboard
Using H and L for navigation
Wouldn't it make sense to have h working as - and l working as <enter>? At least as alternative keybindings? Exactly as ranger does it, basically.
Here's one method for this.
Add this function:
function! NetrwBuf()
nmap <buffer> h -
nmap <buffer> l <CR>
endfunction
Add this autocmd to an augroup to run for each netrw buffer
augroup FILETYPES
autocmd FileType netrw call NetrwBuf()
augroup END
Now it behaves sort of like ranger