Vim on Win10 PowerShell

  • www.vim.org 下载,https://github.com/vim/vim-win32-installer/releases/download/v8.2.0012/gvim_8.2.0012_x86_signed.exe
  •  安装,并记下路径
  •  执行 win + x + a ,打开power shell 后输入
    Set-ExecutionPolicy RemoteSigned
    

      

    , 选择 `y`
  •  再输入
    new-item -path $profile -itemtype file -force
    

      

    自动创建`C:\User\your name\Documents\WindowsPowerShell\Microsoft.PowerShellPprofile.ps1`文件
  • 最后,新增内容
set-alias vim "C:\Vim\vim82\vim.exe" # 此处为vim的安装路径
Function Edit-Profile
vim $profile
Function Edit-Vimrc
vim $HOME\_vimrc

  

猜你喜欢

转载自www.cnblogs.com/ysphinx/p/12052380.html