Speed
Speed

Reputation: 23

How to swap vim commands

There are gf and gF commands in vim. I want to use gf runs the exactly gF doing, and vice versa.

Does there any way can I achieve this?

Thanks.

Upvotes: 2

Views: 49

Answers (1)

Ross Presser
Ross Presser

Reputation: 6255

Add this vim script to your .vimrc:

:noremap gf gF
:noremap gF gf

Upvotes: 3

Related Questions