~alexdavid/dotfiles

ref: e41da60478508d45b875ef7aa13ebb77d2fa90fb dotfiles/nvim/plugin/netrw.vim -rw-r--r-- 357 bytes
e41da604 — Alex David Add mpd config 1 year, 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function! CustomNetrwMap()
  nmap <buffer> h -
  nmap <buffer> l <CR>
  nmap <buffer> s o
  nmap <silent> <buffer> R :e<CR>
  nmap <silent> <buffer> r :e<CR>

  " Netrw overrides <C-l>, this sets it back to MoveToRight
  nmap <silent> <buffer> <C-l> :MoveToRight<CR>
endfunction

augroup FILETYPES
  autocmd FileType netrw call CustomNetrwMap()
augroup END