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 4d2c9d06eda6262e4e00007a

Assignment Alignment

line up the operators. Use spaces, not tabs.

Start file
# Align these assignments

x = 1
y = true
z = 'you'
foo = 'bar'
long_name = "long variable value"
$p3cial = ch4rs
last = line

# Much better!
End file
# Align these assignments

x         = 1
y         = true
z         = 'you'
foo       = 'bar'
long_name = "long variable value"
$p3cial   = ch4rs
last      = line

# Much better!

View Diff

3,6c3,6
< x = 1
< y = true
< z = 'you'
< foo = 'bar'
---
> x         = 1
> y         = true
> z         = 'you'
> foo       = 'bar'
8,9c8,9
< $p3cial = ch4rs
< last = line
---
> $p3cial   = ch4rs
> last      = line

Solutions by @gumnos:

Unlock 8 remaining solutions by signing in and submitting your own entry
Created by: @khamer

215 active golfers, 832 entries

Solutions by @gumnos:
18
#11 - Tim Chase / @gumnos

02/03/2011 at 12:27PM

19
#>60 - Tim Chase / @gumnos

02/03/2011 at 12:26PM

21
#>90 - Tim Chase / @gumnos

02/03/2011 at 12:24PM

27
#>124 - Tim Chase / @gumnos

01/11/2011 at 08:27PM

28
#>127 - Tim Chase / @gumnos

01/11/2011 at 08:16PM

29
#>133 - Tim Chase / @gumnos

01/11/2011 at 08:07PM

31
#>168 - Tim Chase / @gumnos

01/11/2011 at 08:04PM

37
#>196 - Tim Chase / @gumnos

01/11/2011 at 08:02PM