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 5986e7e8d6a38f049d000005

Palindrome numbers

For each number compute its associated palindrome. First number (first line) has been eaten! #prime

Start file
??
211
2111
10111
12011
20021
21101
End file
121
23632
2347432
112242211
132373231
240292042
213373312

View Diff

1,7c1,7
< ??
< 211
< 2111
< 10111
< 12011
< 20021
< 21101
---
> 121
> 23632
> 2347432
> 112242211
> 132373231
> 240292042
> 213373312

Solutions

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 6 remaining solutions by signing in and submitting your own entry
#7 Song Zheng / songz - Score: 34 - 08/10/17 @ 01:06
Vr1:se ri<CR>qqye"=<C-R>"<C-F>i<C-R>"*<CR>PlD<CR>q6@qZZ

0 comments

#8 Philippe Brouillard / _kurowasan - Score: 34 - 08/12/17 @ 20:20
Vr1:se ri<CR>qqye"=<C-R>"<C-F>i<C-R>"*<CR>PlD+q6@qZZ

0 comments

Created by: mcr05

8 active golfers, 10 entries

Leaderboard (lowest score wins):
30
#1 - Urtica dioica / udioica

08/07/2017 at 03:58PM

30
#2 - John Braxler / braxler

08/08/2017 at 03:34PM

30
#3 - Vim Girl / vim_girl

08/10/2017 at 04:51AM

30
#4 - Gabriel Siqueira / Gabriel_HSiq

08/11/2017 at 11:19AM

30
#5 - Roberto Carraretto / robcarraretto

08/12/2017 at 01:45AM

34
#6 - Saki Gw / Sakigw

08/07/2017 at 12:23PM

34
#7 - Song Zheng / songz

08/10/2017 at 01:06AM

34
#8 - Philippe Brouillard / _kurowasan

08/12/2017 at 08:20PM