I know that there are commands and shortcuts for increasing/decreasing or maximaizing the pane size in vifm but I wonder if there is one for setting it to a specific size?
The documentation on vifm manual page says:
Ctrl-W |
set current view size to count.
Ctrl-W _
set current view size to count.
But no matter what I use (like 30<c-w>|
or <c-w>30|
) it doesn't do anything and only maximizes the current pane.
I want to define a mapping which goes to preview mode and will set the first pane to 30 characters width and the second pane to be maximized and be in preview mode. Right now the only solution I found, is something like this:
nnoremap <c-f> <c-w>h<c-w>=30<c-w>-<esc>:view!<cr><s-tab>
but this will cause a flicker on screen, since first it tries to make the panes equal and then decreases the first pane.