如何在power shell添加vim实现代码示例(如何在powerpoint)

admin 152 2022-07-22

阿里云服务器优惠多,折扣错,惊喜多,请咨询:www.wqiis.com

1、去Vim官网下载适合操作系统的可执行文件

地址:https://vim.org/download.php#pc

如何在power shell添加vim实现代码示例(如何在powerpoint)

2、找到Vim文件夹中的vimrc文件进行修改,增加下面这4行。

set encoding=utf-8 set termencoding=utf-8 set fileencoding=utf-8 set fileencodings=ucs-bom,utf-8,chinese,cp936

3、在C:\Windows\System32\WindowsPowerShell\v1.0目录下新建profile.ps1文件,复制下面的代码到profile.ps1文件中。

# There's usually much more than this in my profile! $SCRIPTPATH = "C:\Program Files (x86)\Vim" $VIMPATH = $SCRIPTPATH + "\vim80\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 }

4、重启Shell,执行Set-ExecutionPolicy RemoteSigned命令修改模式就可以了。

Set-ExecutionPolicy RemoteSigned

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。

上一篇:大数据分析平台怎么搭建?大数据分析平台有什么作用?(大数据分析平台方向)
下一篇:云服务器有发展前景吗?云服务器发展前景怎么样?(云服务器的主要优势)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~