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

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

220 active golfers, 883 entries

Solutions by @me_coot:
20
#87 - Marcin Szamotulski / @me_coot

10/21/2013 at 05:01PM

20
#>87 - Marcin Szamotulski / @me_coot

10/21/2013 at 05:17PM

20
#>87 - Marcin Szamotulski / @me_coot

10/21/2013 at 05:22PM

21
#>94 - Marcin Szamotulski / @me_coot

10/21/2013 at 04:59PM

21
#>94 - Marcin Szamotulski / @me_coot

10/21/2013 at 05:21PM

22
#>101 - Marcin Szamotulski / @me_coot

10/21/2013 at 05:20PM

31
#>182 - Marcin Szamotulski / @me_coot

09/20/2012 at 03:44PM

52
#>212 - Marcin Szamotulski / @me_coot

09/20/2012 at 03:37PM