Search code examples
client-servervifm

Vifm - Jump to file in an existing instance of Vifm


Is there a way to make an existing instance of Vifm to jump to a specific file using --remote argument?


Solution

  • There is :goto command, which locates a path. Alternatively there is --select command-line option, but it enters directories instead of positioning cursor on them (files are handled as in :goto). Examples:

    # terminal #1
    vifm --server-name test
    
    # terminal #2
    vifm --server-name test --remote +'goto /etc'
    vifm --server-name test --remote --select /etc/fstab