简体   繁体   English

如何交换vim命令

[英]How to swap vim commands

There are gf and gF commands in vim. vim中有gfgF命令。 I want to use gf runs the exactly gF doing, and vice versa. 我想使用gf来运行gF ,而反之亦然。

Does there any way can I achieve this? 有什么办法可以实现?

Thanks. 谢谢。

Add this vim script to your .vimrc: 将此vim脚本添加到您的.vimrc中:

:noremap gf gF
:noremap gF gf

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM