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

1754 active golfers, 5094 entries

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

12/25/2020 at 06:50AM

12
#>1001 - Brian :| / @Seeemplicity

12/25/2020 at 06:49AM

14
#>1449 - Brian :| / @Seeemplicity

12/25/2020 at 06:48AM

15
#>1545 - Brian :| / @Seeemplicity

12/25/2020 at 06:47AM

16
#>1599 - Brian :| / @Seeemplicity

12/25/2020 at 06:45AM

19
#>1667 - Brian :| / @Seeemplicity

12/25/2020 at 06:43AM

22
#>1695 - Brian :| / @Seeemplicity

12/25/2020 at 06:42AM

25
#>1713 - Brian :| / @Seeemplicity

12/25/2020 at 06:39AM

26
#>1713 - Brian :| / @Seeemplicity

12/25/2020 at 06:38AM

28
#>1720 - Brian :| / @Seeemplicity

12/25/2020 at 06:32AM