Can';t安装vim螺塞

Can';t安装vim螺塞,vim,Vim,按照说明,我将plug.vim放入自动加载文件夹中,我的vimrc现在如下所示: set nocompatible source $VIMRUNTIME/vimrc_example.vim source $VIMRUNTIME/mswin.vim behave mswin call plug#begin('~/.vim/plugged') call plug#end() set diffexpr=MyDiff() function MyDiff() let opt = '-a --bin

按照说明,我将plug.vim放入自动加载文件夹中,我的vimrc现在如下所示:

set nocompatible
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin

call plug#begin('~/.vim/plugged')
call plug#end()

set diffexpr=MyDiff()
function MyDiff()
  let opt = '-a --binary '
  if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
  if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
  let arg1 = v:fname_in
  if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif
  let arg2 = v:fname_new
  if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif
  let arg3 = v:fname_out
  if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif
  let eq = ''
  if $VIMRUNTIME =~ ' '
    if &sh =~ '\<cmd'
      let cmd = '""' . $VIMRUNTIME . '\diff"'
      let eq = '"'
    else
      let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"'
    endif
  else
    let cmd = $VIMRUNTIME . '\diff'
  endif
  silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3 . eq
endfunction
在VIM启动时,我得到

[vim-plug] `git` executable not found. vim-plug requires git.
使用windows 7,请提供帮助。

使用从windows命令提示符运行GIT选项重新安装GIT


这将设置适当的路径变量。

是否安装了
git
?@FDinoff是。从git scm站点下载。它是正确的吗?可能,您还需要将它放在路径中,以便vim可以找到它。(至于我怎么不知道我怎么不使用windows)我应该向windows环境变量添加一些东西还是向vimrc添加smth?我是vim新手,怎么做呢?最有可能的是Ubuntu中的windows环境变量会这样做“sudo apt install git”,因为默认情况下它不会安装在Ubuntu中。
[vim-plug] `git` executable not found. vim-plug requires git.