Hello,
Assuming that you want to compare files via Vim, the following can be used:
" use Vim to diff files
" uses selection of the current pane when it contains more than one file
" otherwise uses left pane file and right pane file keeping order inside Vim
command! diff : if selected() < 2
\ | if paneisat('right') && paneisat('bottom')
\ | execute '!vim -d %%C %%c'
\ | else
\ | execute '!vim -d %%c %%C'
\ | endif
\ | else
\ | execute '!vim -d %%f'
\ | endif
I should actually add this to sample vifmrc.