Questions tagged [refactor]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
18
votes
2answers
3k views

Swap function arguments

When refactoring code it would be useful to be able to swap function arguments. Changing for eg: func(foo[0], bar(), baz.spam) into func(baz.spam, foo[0], bar()) Is there some way to swap ...
8
votes
1answer
2k views

Renaming variables

What is the simplest way to rename variables in Vim, without adding any new packages? Is there a way without using regexps, too?