Open superDuperCyberTechno opened 6 years ago
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
Wouldn't it make sense to have
h
working as-
andl
working as<enter>
? At least as alternative keybindings? Exactly as ranger does it, basically.