vifm / vifm.vim

Vim plugin that allows use of vifm as a file picker
335 stars 19 forks source link

Error when I open a file on Microsoft Windows #56

Closed crile closed 3 years ago

crile commented 3 years ago

Hi,

I can open vifm in vim but it fails when I want to open a file.

There is the following error :

:! vifm  "c:/tmp"  "--choose-files"
"C:\Users\crile\AppData\Local\Temp\VICE74D.tmp" "--on-choose" "echo
\""database_.tmpdatabase_.tmpVIFM_OPEN_TYPEdatabase_.tmpdatabase_.tmp\"">C:\Users\crile\AppData\Local\Temp\VIDE75D.tmp"
"+command EditVim   :let $VIFM_OPEN_TYPE='edit' | execute 'cnoremap j <cr>' |
normal gs:editj" "+command VsplitVim :let $VIFM_OPEN_TYPE='vsplit' | execute
'cnoremap j <cr>' | normal gs:editj" "+command SplitVim  :let
$VIFM_OPEN_TYPE='split' | execute 'cnoremap j <cr>' | normal gs:editj"
"+command DiffVim   :let $VIFM_OPEN_TYPE='vert diffsplit' | execute 'cnoremap j
<cr>' | normal gs:editj" "+command TabVim    :let $VIFM_OPEN_TYPE='tablast |
tab drop' | execute 'cnoremap j <cr>' | normal gs:editj"

Erreur détectée en traitant function <SNR>33_StartVifm[107]..<SNR>33_HandleRunResults :
ligne   55 :
E492: Commande inconnue: database_.tmpdatabase_.tmpVIFM_OPEN_TYPEdatabase_.tmpdatabase_.tmp database.tmp

Windows 10, vifm-w64-se-0.11-binary, vim 8.1.1

xaizek commented 3 years ago

Hello,

thanks for the report, updated master should have this fixed.

crile commented 3 years ago

Thanks for the very quick fix, it works now :)