1

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

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

PS

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

https://github.com/habamax/.vim/blob/59d2782ef41a56a72e6da0d980680d94118aebba/after/ftplugin/netrw.vim#L1

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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