It is possible to open a file with a different program than the one defined in vifmrc?
vifmrc
filextype *.txt vis %f
I want to open .txt files with vis by default, but I need vim occasionally.
.txt
vis
vim
Not sure I understand the issue, but:
:filetype
'vicmd'
:!program %c
Could :!program just assume I want %c whithout having to type it? Ideally, I would like to select a file, press a key, and type the program I want to execute it with.
:!program
%c
!something is to execute arbitrary command, implicit %c will break this. But for simple cases you can define new :command and bind it to a key: :command! open :!%a %%c :nnoremap o :open<space>
!something
:command! open :!%a %%c :nnoremap o :open<space>
I searched whole of internet to find that :file command :) thank you so much :file is like "r" key in ranger, I really need it this :file should be more bold in vifm manual page !!