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

1754 active golfers, 5094 entries

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

06/23/2022 at 08:20PM

12
#>1004 - WbrL17 / @WbrL17

06/23/2022 at 08:19PM

13
#>1259 - WbrL17 / @WbrL17

06/23/2022 at 08:19PM

14
#>1449 - WbrL17 / @WbrL17

06/23/2022 at 08:19PM

17
#>1633 - WbrL17 / @WbrL17

06/23/2022 at 08:18PM

20
#>1678 - WbrL17 / @WbrL17

06/23/2022 at 08:18PM

21
#>1686 - WbrL17 / @WbrL17

06/23/2022 at 08:17PM

22
#>1695 - WbrL17 / @WbrL17

06/23/2022 at 08:16PM

24
#>1706 - WbrL17 / @WbrL17

06/23/2022 at 08:15PM

27
#>1713 - WbrL17 / @WbrL17

06/23/2022 at 08:14PM

29
#>1721 - WbrL17 / @WbrL17

06/23/2022 at 08:11PM

31
#>1727 - WbrL17 / @WbrL17

06/23/2022 at 08:10PM