By default, netrw uses l
to move the cursor one letter to the right in the file name.
How can I configure netrw to use the letter l
to open the file instead of <CR>
1 Answer
Create a file .vim/after/ftplugin/netrw.vim
:
nmap <buffer> l <CR>
Or you can use autocommand with filetype event:
augroup netrw_setup | au!
au FileType netrw nmap <buffer> l <CR>
augroup END
PS
I also have h
mapped to -
giving me nice l
to open directory, h
to go to parent directory.
-
-
it didn't work on the neovim. Would you know how to help me? Commented Feb 19, 2021 at 19:41