Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using H and L for navigation #89

Open
superDuperCyberTechno opened this issue Nov 15, 2017 · 1 comment
Open

Using H and L for navigation #89

superDuperCyberTechno opened this issue Nov 15, 2017 · 1 comment

Comments

@superDuperCyberTechno
Copy link

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.

@michaelmob
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants