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

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

220 active golfers, 883 entries

Solutions by @Arton0306:
19
#65 - Arton0306 / @Arton0306

01/11/2012 at 06:45AM

20
#>84 - Arton0306 / @Arton0306

01/11/2012 at 06:44AM

21
#>93 - Arton0306 / @Arton0306

01/11/2012 at 06:43AM

22
#>101 - Arton0306 / @Arton0306

01/11/2012 at 06:37AM

23
#>105 - Arton0306 / @Arton0306

01/11/2012 at 06:24AM

25
#>118 - Arton0306 / @Arton0306

01/11/2012 at 06:22AM

29
#>150 - Arton0306 / @Arton0306

01/11/2012 at 06:21AM

30
#>163 - Arton0306 / @Arton0306

01/11/2012 at 06:20AM

31
#>180 - Arton0306 / @Arton0306

01/11/2012 at 06:14AM