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
edited by

I tried, e.g., :exe "norm \<C-w>s" to split window, but failed.

By the way, vifm --remote +$'normal \x17s' works.

2 Answers

0 votes
by

This comes up rarely enough that I constantly postpone implementing it... There is no way as of now (really need to add at least \xXX, although expanding keys should be equally easy) other than mapping that to an alphanumeric sequence and using it as an alias, for example:

nnoremap _cw <c-w>
execute 'norm _cws'
by

Update. "\<key>" sequences were implemented, so :exe "norm \<C-w>s" will work in v0.15.

+1 vote
by

Not a direct answer to your question, but you might not need the Ctrl key if you use :wincmd instead.

Give execute 'wincmd s' a try.

...