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 @Seeemplicity:

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

1750 active golfers, 5085 entries

Solutions by @Seeemplicity:
11
#634 - Brian :| / @Seeemplicity

12/25/2020 at 06:50AM

12
#>999 - Brian :| / @Seeemplicity

12/25/2020 at 06:49AM

14
#>1446 - Brian :| / @Seeemplicity

12/25/2020 at 06:48AM

15
#>1542 - Brian :| / @Seeemplicity

12/25/2020 at 06:47AM

16
#>1596 - Brian :| / @Seeemplicity

12/25/2020 at 06:45AM

19
#>1664 - Brian :| / @Seeemplicity

12/25/2020 at 06:43AM

22
#>1692 - Brian :| / @Seeemplicity

12/25/2020 at 06:42AM

25
#>1710 - Brian :| / @Seeemplicity

12/25/2020 at 06:39AM

26
#>1710 - Brian :| / @Seeemplicity

12/25/2020 at 06:38AM

28
#>1717 - Brian :| / @Seeemplicity

12/25/2020 at 06:32AM