首页 > Windows开发 > 详细

Vim on Win10 PowerShell

时间:2019-12-17 10:50:02      阅读:115      评论:0      收藏:0      [点我收藏+]

 

  • 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

  

Vim on Win10 PowerShell

原文:https://www.cnblogs.com/ysphinx/p/12052380.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!