💻 Software
How to switch words in an easy manner (in VIM)?
Fresh5 days ago
Mar 15, 20267741 viewsConfidence Score0%
0%
Problem
I'm not good enough at vim to determine whether this was possible or not (which is why I came to superuser and not good) ~ is there a way in vim to easily switch two words? for example in is there a quick/easy way to change that to ???
Error Output
def function(param1, param2)
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How to switch words in an easy manner (in VIM)?
Low Risk
I don't remember where I originally got this, but it's been in my ~/.vimrc for at least a few years: After you have this defined, all you need to do is put your cursor somewhere on "param1" in normal mode and type:
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix