Welcome to Vifm Q&A, where you can ask questions about Vifm usage. Registration is optional, anonymous posts are moderated. GitHub or Google logins are enabled.
0 votes
in vifm by

What key should I use to map alt+left to :histprev?

thank you

1 Answer

+1 vote
by
selected by
 
Best answer

It's not predefined, but you can try using a key code: type Ctrl+V Alt+Left in a shell. Likely to be this:

nnoremap <silent> <esc>[1;3D :histprev<cr>
by

When I do Ctrl+v Alt+Left in terminal, I get ^[[1;3D. So, I trued both of the followings and none of them work:

nnoremap <silent> ^[[1;3D :histprev<cr>

and

nnoremap <silent> <esc>[[1;3D :histprev<cr>

Do you have any suggestion?

by

Have you tried my command? ^[ is a single key and corresponds to <esc>, not to <esc>[.

by

Yes, that was the first command I tried. It doesn't work.

by

Then it should work, not sure what my get in the way.

by

The issue was a binding in tmux. I changed it and the issue is resolved. Thank you!

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.
...