流程:
# There's usually much more than this in my profile! $SCRIPTPATH = "C:\Program Files\Git\usr\share\vim" # 此行根据$VIMPATH寻找相应vim路径即可,此行不用更改 $VIMPATH = "D:\Git\usr\bin\vim.ext" # 此行为1中vim.exe路径 Set-Alias vi $VIMPATH Set-Alias vim $VIMPATH # for editing your PowerShell profile Function Edit-Profile { vim $profile } # for editing your Vim settings Function Edit-Vimrc { vim $home\_vimrc }
Set-ExecutionPolicy RemoteSigned
y确定之后,重启powershell,vim便可以使用了
脚注[1]
脚注[2]
点赞、投币、收藏 ↩︎
点赞、投币、收藏 ↩︎