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

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

1734 active golfers, 5028 entries

Solutions by @stefanlz:
11
#149 - Stefan Leszkiewicz / @stefanlz

06/16/2013 at 11:56AM

12
#>735 - Stefan Leszkiewicz / @stefanlz

06/16/2013 at 08:29AM

13
#>1066 - Stefan Leszkiewicz / @stefanlz

06/16/2013 at 11:54AM

13
#>1131 - Stefan Leszkiewicz / @stefanlz

04/21/2014 at 03:17AM

14
#>1323 - Stefan Leszkiewicz / @stefanlz

11/17/2013 at 01:11AM

23
#>1680 - Stefan Leszkiewicz / @stefanlz

06/16/2013 at 08:24AM