Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display full file name in vifm

I have two almost identical file names in vifm panel like:

LongFileNameIn|Panel
LongFileNameIn|ThisPanel

where | is a border of a panel. I wonder if there is a way to display file full name in some status line or other view.

like image 633
bruce Avatar asked Dec 03 '25 02:12

bruce


2 Answers

If terminal width is enough, you can sacrifice other information in status line and display only file name there by changing 'statusline' option:

set statusline=%t

You could also switch to single pane mode when working with such files using :only command.

If whole width isn't enough and this is rare case, name could be echoed on the status bar at request (easy to map to some shortcut):

:echo expand('%"c')

As many elements are displayed one per line, there is actually no universal way of displaying very long file names that do not fit into screen.

like image 145
xaizek Avatar answered Dec 05 '25 20:12

xaizek


Another solution, similar to :only, is :split or key map c-w/s. It will display your panels split horizontally.

like image 27
Alex J. Avatar answered Dec 05 '25 18:12

Alex J.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!