powershell下配置vim

powershell下配置vim

【参考1】http://www.wowotech.net/soft/vim_in_powershell.html

【参考2】https://blog.csdn.net/qq_37933114/article/details/82932840

【参考3】http://www.mitgai.net/2016/04/windows/setup-vim-to-work-with-powershell.html

  • 参考1很清楚
  • 参考2有图
  • 参考3讲的很详细,这里只记下主要代码和步骤

主要代码和步骤

  1. 下载vim: https://www.vim.org/download.php#pc
  2. 安装vim,注意记下安装路径
  3. 以管理员身份打开Windows PowerShell,执行Set-ExecutionPolicy RemoteSigned命令,输入 Y 回车
  4. 使用new-item命令,创建一个PowerShell的配置文件Profile new-item -path $profile -itemtype file -force
  5. 编辑配置文件(notepad $profile),添加vim相关的alias
set-alias vim "C:/Program Files/Vim/vim81/vim.exe" #注意安装路径要用自己的
 
# To edit the Powershell Profile
# (Not that I'll remember this)
Function Edit-Profile
{
    vim $profile
}

# To edit Vim settings
Function Edit-Vimrc
{
    vim $HOME\_vimrc
}

powershell常用命令

https://www.jianshu.com/p/b69040c074b7

转载于:https://my.oschina.net/u/3304023/blog/2961667

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值