Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 4f0720c8f037090001000007

switch variable

how fast can you switch two variable ?

Start file
int barins, foovariable = 1; 
End file
int foovariable, barins = 1; 

View Diff

1c1
< int barins, foovariable = 1; 
---
> int foovariable, barins = 1; 

Solutions by @WbrL17:

Unlock 12 remaining solutions by signing in and submitting your own entry
Created by: @lukastsai

1756 active golfers, 5101 entries

Solutions by @WbrL17:
11
#652 - WbrL17 / @WbrL17

06/23/2022 at 08:20PM

12
#>1005 - WbrL17 / @WbrL17

06/23/2022 at 08:19PM

13
#>1261 - WbrL17 / @WbrL17

06/23/2022 at 08:19PM

14
#>1451 - WbrL17 / @WbrL17

06/23/2022 at 08:19PM

17
#>1635 - WbrL17 / @WbrL17

06/23/2022 at 08:18PM

20
#>1680 - WbrL17 / @WbrL17

06/23/2022 at 08:18PM

21
#>1688 - WbrL17 / @WbrL17

06/23/2022 at 08:17PM

22
#>1697 - WbrL17 / @WbrL17

06/23/2022 at 08:16PM

24
#>1708 - WbrL17 / @WbrL17

06/23/2022 at 08:15PM

27
#>1715 - WbrL17 / @WbrL17

06/23/2022 at 08:14PM

29
#>1723 - WbrL17 / @WbrL17

06/23/2022 at 08:11PM

31
#>1729 - WbrL17 / @WbrL17

06/23/2022 at 08:10PM