Welcome to Vifm Q&A, where you can ask questions about using Vifm. Registration is optional, anonymous posts are moderated. E-mail and GitHub logins are enabled.
0 votes
in vifm by

how to map <CR> to execute the executable file and l to open file?

1 Answer

0 votes
by
selected by
 
Best answer
by

it works perfectly !!!! thx!!

by

Similarlly, how would one remap l to only move right and refrain from opening/running files?

by

Similarlly, how would one remap l to only move right and refrain from opening/running files?

If by moving right you mean entering directories, then this should do:

nnoremap <silent> l
    \ : if filetype('.', 1) == 'dir'
    \ |     execute 'normal! l'
    \ | endif<cr>
by

Thank you that's done it!

If you would like to make a bug report or feature request consider using GitHub, SourceForge or e-mail. Posting such things here is acceptable, but this is not a perfect place for them.
...