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 55b35f751b16ea1bc100a0e2

Maze path

Follow the given motions and mark your path with Xs. Attention: This maze is quite big (20x20), please set your terminal size to at least 82.

Start file
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa8   8aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
8               8   8                       8       8                   8       8
8   8aaaaaaa8   8   8   8aaa8   8aaaaaaa8   8   8   8aaa8   8   8aaa8   8aaa8   8
8   8       8   8       8       8       8       8           8       8           8
8   8aaa8   8   8aaaaaaa8   8aaa8   8   8aaaaaaa8   8aaaaaaaaaaa8   8   8aaaaaaa8
8       8   8   8                   8   8           8               8   8       8
8aaa8   8   8   8   8aaa8   8aaaaaaa8   8aaa8   8aaaaaaaaaaaaaaaaaaaaaaa8   8   8
8   8   8   8       8   8       8   8       8                               8   8
8   8   8   8aaaaaaa8   8aaa8   8   8aaa8   8aaaaaaaaaaa8   8aaaaaaaaaaaaaaa8   8
8       8       8       8           8       8               8               8   8
8   8aaaaaaa8   8   8aaaaaaa8   8aaa8   8aaa8   8aaaaaaaaaaaaaaaaaaaaaaa8   8   8
8   8       8   8   8               8   8   8   8               8       8       8
8   8   8   8   8   8aaaaaaaaaaaaaaa8   8   8   8   8aaaaaaa8   8   8   8aaaaaaa8
8   8   8   8           8   8       8   8   8   8           8       8           8
8   8   8   8aaaaaaa8   8   8   8   8   8   8   8aaaaaaaaaaaaaaa8   8aaaaaaa8   8
8   8   8                   8   8       8   8                       8           8
8   8aaaaaaaaaaa8   8   8aaa8   8aaaaaaa8   8aaaaaaa8   8aaaaaaaaaaa8   8aaaaaaa8
8               8   8       8   8                       8               8       8
8aaa8   8aaa8   8   8aaaaaaa8   8aaaaaaaaaaaaaaaaaaaaaaa8   8   8aaaaaaa8   8   8
8   8       8       8       8               8               8   8       8   8   8
8   8   8   8aaaaaaa8   8   8aaaaaaaaaaa8   8   8aaaaaaaaaaa8   8   8   8   8   8
8       8               8   8           8   8       8       8   8   8       8   8
8   8aaaaaaaaaaaaaaaaaaa8   8   8aaaaaaa8   8   8aaa8   8   8   8   8aaa8   8   8
8   8               8   8   8       8       8   8       8       8       8   8   8
8aaa8   8aaaaaaaaaaa8   8aaaaaaa8   8   8aaa8   8   8aaaaaaaaaaaaaaaaaaa8   8   8
8       8           8               8   8       8   8                       8   8
8   8   8   8aaa8   8aaa8   8aaa8   8   8   8aaa8   8   8aaaaaaaaaaaaaaaaaaa8   8
8   8   8       8           8       8   8   8       8       8       8       8   8
8   8   8aaa8   8aaaaaaaaaaaaaaa8   8   8   8   8   8aaa8   8   8aaa8   8   8   8
8   8           8       8           8   8   8   8       8       8       8   8   8
8   8aaaaaaaaaaaaaaa8   8aaa8   8aaa8   8   8aaaaaaa8   8aaaaaaa8   8aaa8   8   8
8       8       8       8       8   8   8   8           8               8   8   8
8   8aaa8   8   8   8aaa8   8aaa8   8   8   8   8aaaaaaa8   8aaaaaaaaaaa8   8   8
8   8       8   8           8       8   8   8               8       8           8
8   8   8aaa8   8aaa8   8aaa8   8aaa8   8aaaaaaaaaaaaaaaaaaa8   8   8   8aaaaaaa8
8       8       8       8   8       8                           8   8           8
8aaaaaaa8   8aaa8   8aaa8   8aaa8   8aaaaaaaaaaaaaaaaaaaaaaaaaaa8   8aaaaaaaaaaa8
8   8       8       8           8       8       8                   8           8
8   8   8aaa8   8   8   8aaa8   8aaa8   8   8   8   8aaa8   8aaaaaaa8   8aaa8   8
8       8       8       8               8   8       8                   8       8
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa8   8aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Your path:
1j8h2j4h2j8l2k4l4j4l2j4h6j4h2k4h6j12l4j4h12j24l2k4l4j16h2j4h2k4h3j

Your help (or not):
s/\v(\d)(\D+)/\=repeat(submatch(2),str2nr(submatch(1)))/g
s/./&rX/g
:s/\D/& /g
End file
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa8 X 8aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
8               8   8         XXXXXXXXX     8       8                   8       8
8   8aaaaaaa8   8   8   8aaa8 X 8aaaaaaa8   8   8   8aaa8   8   8aaa8   8aaa8   8
8   8       8   8       8 XXXXX 8 XXXXX 8       8           8       8           8
8   8aaa8   8   8aaaaaaa8 X 8aaa8 X 8 X 8aaaaaaa8   8aaaaaaaaaaa8   8   8aaaaaaa8
8       8   8   8         XXXXXXXXX 8 X 8           8               8   8       8
8aaa8   8   8   8   8aaa8   8aaaaaaa8 X 8aaa8   8aaaaaaaaaaaaaaaaaaaaaaa8   8   8
8   8   8   8       8   8       8   8 XXXXX 8                               8   8
8   8   8   8aaaaaaa8   8aaa8   8   8aaa8 X 8aaaaaaaaaaa8   8aaaaaaaaaaaaaaa8   8
8       8       8       8           8 XXXXX 8               8               8   8
8   8aaaaaaa8   8   8aaaaaaa8   8aaa8 X 8aaa8   8aaaaaaaaaaaaaaaaaaaaaaa8   8   8
8   8       8   8   8               8 X 8   8   8               8       8       8
8   8   8   8   8   8aaaaaaaaaaaaaaa8 X 8   8   8   8aaaaaaa8   8   8   8aaaaaaa8
8   8   8   8           8   8 XXXXX 8 X 8   8   8           8       8           8
8   8   8   8aaaaaaa8   8   8 X 8 X 8 X 8   8   8aaaaaaaaaaaaaaa8   8aaaaaaa8   8
8   8   8                   8 X 8 XXXXX 8   8                       8           8
8   8aaaaaaaaaaa8   8   8aaa8 X 8aaaaaaa8   8aaaaaaa8   8aaaaaaaaaaa8   8aaaaaaa8
8               8   8       8 X 8                       8               8       8
8aaa8   8aaa8   8   8aaaaaaa8 X 8aaaaaaaaaaaaaaaaaaaaaaa8   8   8aaaaaaa8   8   8
8   8       8       8       8 XXXXXXXXXXXXX 8               8   8       8   8   8
8   8   8   8aaaaaaa8   8   8aaaaaaaaaaa8 X 8   8aaaaaaaaaaa8   8   8   8   8   8
8       8               8   8           8 X 8       8       8   8   8       8   8
8   8aaaaaaaaaaaaaaaaaaa8   8   8aaaaaaa8 X 8   8aaa8   8   8   8   8aaa8   8   8
8   8               8   8   8       8 XXXXX 8   8       8       8       8   8   8
8aaa8   8aaaaaaaaaaa8   8aaaaaaa8   8 X 8aaa8   8   8aaaaaaaaaaaaaaaaaaa8   8   8
8       8           8               8 X 8       8   8                       8   8
8   8   8   8aaa8   8aaa8   8aaa8   8 X 8   8aaa8   8   8aaaaaaaaaaaaaaaaaaa8   8
8   8   8       8           8       8 X 8   8       8       8       8       8   8
8   8   8aaa8   8aaaaaaaaaaaaaaa8   8 X 8   8   8   8aaa8   8   8aaa8   8   8   8
8   8           8       8           8 X 8   8   8       8       8       8   8   8
8   8aaaaaaaaaaaaaaa8   8aaa8   8aaa8 X 8   8aaaaaaa8   8aaaaaaa8   8aaa8   8   8
8       8       8       8       8   8 X 8   8           8               8   8   8
8   8aaa8   8   8   8aaa8   8aaa8   8 X 8   8   8aaaaaaa8   8aaaaaaaaaaa8   8   8
8   8       8   8           8       8 X 8   8               8 XXXXX 8           8
8   8   8aaa8   8aaa8   8aaa8   8aaa8 X 8aaaaaaaaaaaaaaaaaaa8 X 8 X 8   8aaaaaaa8
8       8       8       8   8       8 XXXXXXXXXXXXXXXXXXXXXXXXX 8 X 8           8
8aaaaaaa8   8aaa8   8aaa8   8aaa8   8aaaaaaaaaaaaaaaaaaaaaaaaaaa8 X 8aaaaaaaaaaa8
8   8       8       8           8       8 XXXXX 8 XXXXXXXXXXXXXXXXX 8           8
8   8   8aaa8   8   8   8aaa8   8aaa8   8 X 8 X 8 X 8aaa8   8aaaaaaa8   8aaa8   8
8       8       8       8               8 X 8 XXXXX 8                   8       8
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa8 X 8aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Your path:
1j8h2j4h2j8l2k4l4j4l2j4h6j4h2k4h6j12l4j4h12j24l2k4l4j16h2j4h2k4h3j

Your help (or not):
s/\v(\d)(\D+)/\=repeat(submatch(2),str2nr(submatch(1)))/g
s/./&rX/g
:s/\D/& /g

View Diff

1,41c1,41
< aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa8   8aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
< 8               8   8                       8       8                   8       8
< 8   8aaaaaaa8   8   8   8aaa8   8aaaaaaa8   8   8   8aaa8   8   8aaa8   8aaa8   8
< 8   8       8   8       8       8       8       8           8       8           8
< 8   8aaa8   8   8aaaaaaa8   8aaa8   8   8aaaaaaa8   8aaaaaaaaaaa8   8   8aaaaaaa8
< 8       8   8   8                   8   8           8               8   8       8
< 8aaa8   8   8   8   8aaa8   8aaaaaaa8   8aaa8   8aaaaaaaaaaaaaaaaaaaaaaa8   8   8
< 8   8   8   8       8   8       8   8       8                               8   8
< 8   8   8   8aaaaaaa8   8aaa8   8   8aaa8   8aaaaaaaaaaa8   8aaaaaaaaaaaaaaa8   8
< 8       8       8       8           8       8               8               8   8
< 8   8aaaaaaa8   8   8aaaaaaa8   8aaa8   8aaa8   8aaaaaaaaaaaaaaaaaaaaaaa8   8   8
< 8   8       8   8   8               8   8   8   8               8       8       8
< 8   8   8   8   8   8aaaaaaaaaaaaaaa8   8   8   8   8aaaaaaa8   8   8   8aaaaaaa8
< 8   8   8   8           8   8       8   8   8   8           8       8           8
< 8   8   8   8aaaaaaa8   8   8   8   8   8   8   8aaaaaaaaaaaaaaa8   8aaaaaaa8   8
< 8   8   8                   8   8       8   8                       8           8
< 8   8aaaaaaaaaaa8   8   8aaa8   8aaaaaaa8   8aaaaaaa8   8aaaaaaaaaaa8   8aaaaaaa8
< 8               8   8       8   8                       8               8       8
< 8aaa8   8aaa8   8   8aaaaaaa8   8aaaaaaaaaaaaaaaaaaaaaaa8   8   8aaaaaaa8   8   8
< 8   8       8       8       8               8               8   8       8   8   8
< 8   8   8   8aaaaaaa8   8   8aaaaaaaaaaa8   8   8aaaaaaaaaaa8   8   8   8   8   8
< 8       8               8   8           8   8       8       8   8   8       8   8
< 8   8aaaaaaaaaaaaaaaaaaa8   8   8aaaaaaa8   8   8aaa8   8   8   8   8aaa8   8   8
< 8   8               8   8   8       8       8   8       8       8       8   8   8
< 8aaa8   8aaaaaaaaaaa8   8aaaaaaa8   8   8aaa8   8   8aaaaaaaaaaaaaaaaaaa8   8   8
< 8       8           8               8   8       8   8                       8   8
< 8   8   8   8aaa8   8aaa8   8aaa8   8   8   8aaa8   8   8aaaaaaaaaaaaaaaaaaa8   8
< 8   8   8       8           8       8   8   8       8       8       8       8   8
< 8   8   8aaa8   8aaaaaaaaaaaaaaa8   8   8   8   8   8aaa8   8   8aaa8   8   8   8
< 8   8           8       8           8   8   8   8       8       8       8   8   8
< 8   8aaaaaaaaaaaaaaa8   8aaa8   8aaa8   8   8aaaaaaa8   8aaaaaaa8   8aaa8   8   8
< 8       8       8       8       8   8   8   8           8               8   8   8
< 8   8aaa8   8   8   8aaa8   8aaa8   8   8   8   8aaaaaaa8   8aaaaaaaaaaa8   8   8
< 8   8       8   8           8       8   8   8               8       8           8
< 8   8   8aaa8   8aaa8   8aaa8   8aaa8   8aaaaaaaaaaaaaaaaaaa8   8   8   8aaaaaaa8
< 8       8       8       8   8       8                           8   8           8
< 8aaaaaaa8   8aaa8   8aaa8   8aaa8   8aaaaaaaaaaaaaaaaaaaaaaaaaaa8   8aaaaaaaaaaa8
< 8   8       8       8           8       8       8                   8           8
< 8   8   8aaa8   8   8   8aaa8   8aaa8   8   8   8   8aaa8   8aaaaaaa8   8aaa8   8
< 8       8       8       8               8   8       8                   8       8
< aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa8   8aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
---
> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa8 X 8aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
> 8               8   8         XXXXXXXXX     8       8                   8       8
> 8   8aaaaaaa8   8   8   8aaa8 X 8aaaaaaa8   8   8   8aaa8   8   8aaa8   8aaa8   8
> 8   8       8   8       8 XXXXX 8 XXXXX 8       8           8       8           8
> 8   8aaa8   8   8aaaaaaa8 X 8aaa8 X 8 X 8aaaaaaa8   8aaaaaaaaaaa8   8   8aaaaaaa8
> 8       8   8   8         XXXXXXXXX 8 X 8           8               8   8       8
> 8aaa8   8   8   8   8aaa8   8aaaaaaa8 X 8aaa8   8aaaaaaaaaaaaaaaaaaaaaaa8   8   8
> 8   8   8   8       8   8       8   8 XXXXX 8                               8   8
> 8   8   8   8aaaaaaa8   8aaa8   8   8aaa8 X 8aaaaaaaaaaa8   8aaaaaaaaaaaaaaa8   8
> 8       8       8       8           8 XXXXX 8               8               8   8
> 8   8aaaaaaa8   8   8aaaaaaa8   8aaa8 X 8aaa8   8aaaaaaaaaaaaaaaaaaaaaaa8   8   8
> 8   8       8   8   8               8 X 8   8   8               8       8       8
> 8   8   8   8   8   8aaaaaaaaaaaaaaa8 X 8   8   8   8aaaaaaa8   8   8   8aaaaaaa8
> 8   8   8   8           8   8 XXXXX 8 X 8   8   8           8       8           8
> 8   8   8   8aaaaaaa8   8   8 X 8 X 8 X 8   8   8aaaaaaaaaaaaaaa8   8aaaaaaa8   8
> 8   8   8                   8 X 8 XXXXX 8   8                       8           8
> 8   8aaaaaaaaaaa8   8   8aaa8 X 8aaaaaaa8   8aaaaaaa8   8aaaaaaaaaaa8   8aaaaaaa8
> 8               8   8       8 X 8                       8               8       8
> 8aaa8   8aaa8   8   8aaaaaaa8 X 8aaaaaaaaaaaaaaaaaaaaaaa8   8   8aaaaaaa8   8   8
> 8   8       8       8       8 XXXXXXXXXXXXX 8               8   8       8   8   8
> 8   8   8   8aaaaaaa8   8   8aaaaaaaaaaa8 X 8   8aaaaaaaaaaa8   8   8   8   8   8
> 8       8               8   8           8 X 8       8       8   8   8       8   8
> 8   8aaaaaaaaaaaaaaaaaaa8   8   8aaaaaaa8 X 8   8aaa8   8   8   8   8aaa8   8   8
> 8   8               8   8   8       8 XXXXX 8   8       8       8       8   8   8
> 8aaa8   8aaaaaaaaaaa8   8aaaaaaa8   8 X 8aaa8   8   8aaaaaaaaaaaaaaaaaaa8   8   8
> 8       8           8               8 X 8       8   8                       8   8
> 8   8   8   8aaa8   8aaa8   8aaa8   8 X 8   8aaa8   8   8aaaaaaaaaaaaaaaaaaa8   8
> 8   8   8       8           8       8 X 8   8       8       8       8       8   8
> 8   8   8aaa8   8aaaaaaaaaaaaaaa8   8 X 8   8   8   8aaa8   8   8aaa8   8   8   8
> 8   8           8       8           8 X 8   8   8       8       8       8   8   8
> 8   8aaaaaaaaaaaaaaa8   8aaa8   8aaa8 X 8   8aaaaaaa8   8aaaaaaa8   8aaa8   8   8
> 8       8       8       8       8   8 X 8   8           8               8   8   8
> 8   8aaa8   8   8   8aaa8   8aaa8   8 X 8   8   8aaaaaaa8   8aaaaaaaaaaa8   8   8
> 8   8       8   8           8       8 X 8   8               8 XXXXX 8           8
> 8   8   8aaa8   8aaa8   8aaa8   8aaa8 X 8aaaaaaaaaaaaaaaaaaa8 X 8 X 8   8aaaaaaa8
> 8       8       8       8   8       8 XXXXXXXXXXXXXXXXXXXXXXXXX 8 X 8           8
> 8aaaaaaa8   8aaa8   8aaa8   8aaa8   8aaaaaaaaaaaaaaaaaaaaaaaaaaa8 X 8aaaaaaaaaaa8
> 8   8       8       8           8       8 XXXXX 8 XXXXXXXXXXXXXXXXX 8           8
> 8   8   8aaa8   8   8   8aaa8   8aaa8   8 X 8 X 8 X 8aaa8   8aaaaaaa8   8aaa8   8
> 8       8       8       8               8 X 8 XXXXX 8                   8       8
> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa8 X 8aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Solutions by @lifepillar:

Unlock 1 remaining solutions by signing in and submitting your own entry
Created by: @mcr05

17 active golfers, 48 entries

Solutions by @lifepillar:
64
#13 - Lifepillar / @lifepillar

07/26/2015 at 12:53PM