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

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

1693 active golfers, 4877 entries

Solutions by @BerlinSchneider:
11
#233 - John / @BerlinSchneider

01/15/2014 at 08:16AM

11
#>233 - John / @BerlinSchneider

01/15/2014 at 08:28AM

12
#>756 - John / @BerlinSchneider

01/15/2014 at 08:14AM

13
#>1081 - John / @BerlinSchneider

01/15/2014 at 08:12AM

14
#>1293 - John / @BerlinSchneider

01/15/2014 at 08:11AM

16
#>1524 - John / @BerlinSchneider

01/15/2014 at 08:09AM