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

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

1748 active golfers, 5071 entries

Solutions by @magdzikk1:
11
#93 - magdzikk / @magdzikk1

04/14/2012 at 12:25PM

11
#>93 - magdzikk / @magdzikk1

04/14/2012 at 12:49PM

12
#>705 - magdzikk / @magdzikk1

04/14/2012 at 12:00PM

12
#>705 - magdzikk / @magdzikk1

04/14/2012 at 12:48PM

13
#>1040 - magdzikk / @magdzikk1

04/14/2012 at 11:50AM

13
#>1040 - magdzikk / @magdzikk1

04/14/2012 at 11:58AM

13
#>1040 - magdzikk / @magdzikk1

04/14/2012 at 12:48PM

14
#>1294 - magdzikk / @magdzikk1

04/14/2012 at 11:46AM

14
#>1294 - magdzikk / @magdzikk1

04/14/2012 at 11:55AM

14
#>1294 - magdzikk / @magdzikk1

04/14/2012 at 12:43PM

15
#>1462 - magdzikk / @magdzikk1

04/14/2012 at 08:35AM

15
#>1462 - magdzikk / @magdzikk1

04/14/2012 at 11:45AM

16
#>1549 - magdzikk / @magdzikk1

04/14/2012 at 12:44PM

17
#>1600 - magdzikk / @magdzikk1

04/14/2012 at 08:33AM

19
#>1652 - magdzikk / @magdzikk1

04/05/2012 at 04:22PM

19
#>1652 - magdzikk / @magdzikk1

04/14/2012 at 11:52AM

20
#>1664 - magdzikk / @magdzikk1

04/05/2012 at 04:16PM

25
#>1701 - magdzikk / @magdzikk1

04/05/2012 at 04:14PM