Search code examples
file-managervifm

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.


Solution

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