博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
PowerShell使用vim
阅读量:7094 次
发布时间:2019-06-28

本文共 954 字,大约阅读时间需要 3 分钟。

hot3.png

PowerShell使用vim

  1. 下载安装Windows下的vim;
  2. 设置PowerShell环境,能使用“allow scripts to run”,步骤如下:
Set-ExecutionPolicy RemoteSigned提示输入Y
  1. 使用new-item命令,创建PowerShell的配置文件Profile
new-item -path $profile -itemtype file -force
  1. 编辑profile(notepad $profile),添加相关的alias
set-alias vim "D:/software/Vim/vim80/./vim.exe"# To edit the Powershell Profile# (Not that I'll remember this)Function Edit-Profile{    vim $profile}# To edit Vim settingsFunction Edit-Vimrc{    vim $HOME\_vimrc}
  1. 重启powershell

vim编码问题提

gvim安装目录下的_vimrc文件中,添加如下配置:

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" vim7.1在windows下的编码设置。By Huadong.Liu""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""set encoding=utf-8set fileencodings=utf-8,chinese,latin-1if has("win32") set fileencoding=chineseelse set fileencoding=utf-8endif"解决菜单乱码source $VIMRUNTIME/delmenu.vimsource $VIMRUNTIME/menu.vim"解决consle输出乱码language messages zh_CN.utf-8

转载于:https://my.oschina.net/u/2311195/blog/1619983

你可能感兴趣的文章
zookeeper 安装 && 基础知识
查看>>
[LeetCode] Remove Nth Node From End of List
查看>>
switch语句的技巧
查看>>
FindFileByContent
查看>>
抽象类和接口的区别——很深入的一篇文章
查看>>
小光棍数
查看>>
HDU3480:Division——题解
查看>>
HTTP头部和正文
查看>>
BZOJ - 3307: 雨天的尾巴
查看>>
Java properties配置文件
查看>>
操作系统原理3——多道程序
查看>>
COCI CONTEST #3 29.11.2014 STROJOPIS
查看>>
《世界是数字的》读后感
查看>>
Android SDK工具(谷歌提供的16个工具)简介
查看>>
常见流媒体协议
查看>>
2017年度总结
查看>>
理解WebKit和Chromium: Android 4.4 上的Chromium WebView
查看>>
SqlServer表死锁的解决方法分享(转载)
查看>>
HTML5 全屏 API
查看>>
Android推送服务——百度云推送
查看>>