diff --git a/autoload/fzf/vim.vim b/autoload/fzf/vim.vim index 9e2ff8ed..ef22024d 100644 --- a/autoload/fzf/vim.vim +++ b/autoload/fzf/vim.vim @@ -41,7 +41,8 @@ if s:is_win else let s:bin.preview = fnamemodify(s:bin.preview, ':8') endif - let s:bin.preview = 'bash '.escape(s:bin.preview, '\') + let git_bash_bin = 'bash /mnt/'.substitute(s:bin.preview, '\([A-Z]\):', '\L\1\e', '') + let s:bin.preview = substitute(git_bash_bin, '\', '/', 'g') endif let s:wide = 120