diff --git a/autoload/floaterm/edita/vim/client.vim b/autoload/floaterm/edita/vim/client.vim index 78e2ae2..27647ba 100644 --- a/autoload/floaterm/edita/vim/client.vim +++ b/autoload/floaterm/edita/vim/client.vim @@ -22,7 +22,8 @@ endfunction function! floaterm#edita#vim#client#EDITOR() abort let args = [ - \ shellescape(v:progpath), + \ shellescape(fnamemodify(v:progpath, ':t') ==# v:progname ? + \ v:progpath : exepath(v:progname)), \ '--not-a-term', \ '--clean', \ '--noplugin',