You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Helix like Vim assigns [Cntrl-o] to the jump_backward command. This command is especially useful when working with LSP.
Unfortunately Midnight Commandermc hard codes [Cntrl-o] to return from its inner shell. Since mc is the perfect complement for console based text editors, the only way to combine both, is to remap the [Cntrl-o] key in Vim/Helix.
It took me some time to find a disposable control key combination, close to [Cntrl-i] (jump forward) and in Vim I finally ended up with:
nnoremap<C-j><C-o>inoremap<C-Space><C-x><C-o>
This way, you can browse with [Cntrl-j] and [Cntrl-i] the same way as you do with j and k.
The downside is, that [Cntrl-j] is by default assigned as second [Enter] key to insert_newline. However, as the [Enter] key is always in a comfortable position on most keyboards, I believe [Cntrl-j] rarely (if ever) used.
Proposal for Helix:
set by default:
[keys.normal]
C-j = "jump_backward"
For VIM compatibility the C-o = "jump_backward" could stay.
Furthermore, in Window mode [Ctrl-o] is assigned to Only keep the current window, closing all the otherswonly. No idea what to do with this. Maybe assign it to [Alt-o] instead?
What do you think? How do you use Helix with Midnight Commander?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Helix like Vim assigns
[Cntrl-o]
to thejump_backward
command. This command is especially useful when working with LSP.Unfortunately Midnight Commander
mc
hard codes[Cntrl-o]
to return from its inner shell. Sincemc
is the perfect complement for console based text editors, the only way to combine both, is to remap the[Cntrl-o]
key in Vim/Helix.It took me some time to find a disposable control key combination, close to
[Cntrl-i]
(jump forward
) and in Vim I finally ended up with:This way, you can browse with
[Cntrl-j]
and[Cntrl-i]
the same way as you do withj
andk
.The downside is, that
[Cntrl-j]
is by default assigned as second[Enter]
key toinsert_newline
. However, as the[Enter]
key is always in a comfortable position on most keyboards, I believe[Cntrl-j]
rarely (if ever) used.Proposal for Helix:
set by default:
For VIM compatibility the
C-o = "jump_backward"
could stay.Furthermore, in Window mode
[Ctrl-o]
is assigned to Only keep the current window, closing all the otherswonly
. No idea what to do with this. Maybe assign it to[Alt-o]
instead?What do you think? How do you use Helix with Midnight Commander?
Beta Was this translation helpful? Give feedback.
All reactions