当前位置:网站首页>Visual Studio中vim模拟器
Visual Studio中vim模拟器
2022-08-02 23:14:00 【ITKEY_】
简介
Vim 仿真
这是 Visual Studio 2015 及更高版本的 Vim 仿真层。它将 Vim 熟悉的键绑定体验直接集成到 Visual Studio 的编辑器中。
细节
GitHub 上提供了该项目和问题跟踪的完整源代码。 http://github.com/jaredpar/VsVim/
下载与安装
下载页面如下:
https://marketplace.visualstudio.com/items?itemName=JaredParMSFT.VsVim&ssr=false#qna
下载以后得到的文件名VsVim.vsix双击运行就可以进行安装。

配置
安装成插件以后,第一次打开vs会弹出如下提示:
VsVim detected conflicting key bindings

配置页面如下:
配置文件
同时也可通过vimrc文件来做些特殊配置,vimrc的搜索路径可通过在编辑器中输入“:set”查看。
我的是这样子的。
vimrcpaths="C:\Users\itkey;C:\Users\itkey\vimfiles;C:\Users\itkey"
于是我在以下路径创建了配置文件:C:\Users\itkey\_vimrc文件的内容如下(仅供参考):
" 设置leader键为空格
let mapleader=" "
inoremap jk <Esc>
" 全选
nmap <C-a> gg<S-v>G
" 向下5行
noremap <C-j> 5j
" 向上5行
noremap <C-k> 5k
" 其他模式快速移动
nnoremap H ^
nnoremap L $
vnoremap H ^
vnoremap L $
" 复制粘贴剪贴板
nnoremap <leader>y "+y
nnoremap <leader>yy "+yy
配置完成以后,重新启动VS生效。
参考
边栏推荐
猜你喜欢

1 - vector R language self-study

即席查询—— Kylin使用

数据库主键一定要自增吗?有哪些场景不建议自增?

CTF命令执行题目解题思路

APT level comprehensive free kill with Shell

智能电视竞争白热化,利用小程序共建生态突围

技术分享 | 接口自动化测试中如何对xml 格式做断言验证?

I have been in the software testing industry for nearly 20 years, let me talk to you about today's software testing

The CTF command execution subject their thinking

js基础知识整理之 —— 变量和数据类型
随机推荐
智能电视竞争白热化,利用小程序共建生态突围
用了TCP协议,就一定不会丢包吗?
B站回应HR称用户是Loser:涉事面试官去年底已被劝退
Based on two levels of decomposition and the length of the memory network multi-step combined forecasting model of short-term wind speed
用大白话解释“什么是ERP?” 看完这篇就全明白了
数据库审计 - 网络安全的重要组成部分
VMware workstation program starts slowly
数字化转型巨浪拍岸,成长型企业如何“渡河”?
CAS:1445723-73-8,DSPE-PEG-NHS,磷脂-聚乙二醇-活性酯两亲性脂质PEG共轭物
基于两级分解和长短时记忆网络的短期风速多步组合预测模型
聚乙二醇衍生物4-Arm PEG-DSPE,四臂-聚乙二醇-磷脂
Numpy数组中d[True]=1的含义
严格反馈非线性系统基于事件触发的自抗扰预设有限时间跟踪控制
【UE5 骨骼动画】全形体IK导致Two Bone IK只能斜着移动,不能平移
No-code development platform form styling steps introductory course
@GetMapping、@PostMapping、@PutMapping、@DeleteMapping的区别
Rebound shell principle and implementation
Test | ali internship 90 days in life: from the perspective of interns, talk about personal growth
WAF WebShell Trojan free to kill
qt静态编译出现Project ERROR: Library ‘odbc‘ is not defined