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 1


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


I also have h mapped to - giving me nice l to open directory, h to go to parent directory.



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.