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

1734 active golfers, 5028 entries

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

06/23/2022 at 08:20PM

12
#>995 - WbrL17 / @WbrL17

06/23/2022 at 08:19PM

13
#>1248 - WbrL17 / @WbrL17

06/23/2022 at 08:19PM

14
#>1436 - WbrL17 / @WbrL17

06/23/2022 at 08:19PM

17
#>1618 - WbrL17 / @WbrL17

06/23/2022 at 08:18PM

20
#>1662 - WbrL17 / @WbrL17

06/23/2022 at 08:18PM

21
#>1670 - WbrL17 / @WbrL17

06/23/2022 at 08:17PM

22
#>1678 - WbrL17 / @WbrL17

06/23/2022 at 08:16PM

24
#>1689 - WbrL17 / @WbrL17

06/23/2022 at 08:15PM

27
#>1696 - WbrL17 / @WbrL17

06/23/2022 at 08:14PM

29
#>1704 - WbrL17 / @WbrL17

06/23/2022 at 08:11PM

31
#>1710 - WbrL17 / @WbrL17

06/23/2022 at 08:10PM