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 56fb2e75ccffcc0009026473

One number per line

Just give me the numbers.

Start file
- One number per line -
-----------------------
2,3,5,7,
11,13,17,
19,23,29,
End file
2
3
5
7
11
13
17
19
23
29

View Diff

Your target is 14. I don't think this one will last 24 hours. :)

Hopefully it's a good addition to the challenge set though. Enjoy.

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 2957 remaining solutions by signing in and submitting your own entry
#2958 호도르 / @5jhDIioJ2FEnDbB - Score: 327 - 07/26/18 @ 06:28
dfd<Esc>kjkd2dlhlx<CR>ku:norm ax<Esc><Esc>kjkxi<CR><Esc>.uuua<BS><CR><Esc>.uuuuuud2<Esc><Esc><Esc><Esc>d2d<Esc><Esc><Esc>jkl:%s <BS>/,/\n/g<BS><BS><BS><BS>\ <BS>n/g<CR>u<Esc><Esc><Esc><Esc>:%s /,/\\n/g<CR>ukjlklhkjk:%s /,/\<BS><CR>/g<CR>u:<Up><Left><Left><Left><BS><BS>cr<CR><Esc>ukjlk:<Up><Left><Left><Left>:<BS><Right><Right><Right><BS><BS><BS><BS><BS><BS>\s/g<BS><BS><BS><BS>/g<BS><BS>\r/g<CR>u<Up><Up><Up><Up>:<Up><CR>u<Esc>llllllllggjkluuuuuuudj<Esc>ud22d<Esc>uud2d<Esc>l:%s/,/[<BS>\r/g<CR>:g ^$<BS>$<Esc>uu<C-R><Esc><Esc>:5<BS>%s /.<BS>,/\g<BS>r/g<cr><BS><BS><BS>CR><CR><Up>:<Up><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS>:<Up><BS><BS><BS><BS><CR>:g<BS> <BS>g /^$/g<BS>dd/<BS><BS><CR>ZZ

0 comments


Created by: @udioica

2958 active golfers, 13785 entries

Leaderboard (lowest score wins):
17
#811 - timerella® / @timerella

11/16/2016 at 01:27AM

17
#812 - Łukasz Gromadkiewicz / @sakulTW

11/22/2016 at 02:24PM

17
#813 - th / @tithrx

12/01/2016 at 04:28PM

17
#814 - Markus Flatscher / @mflat

12/05/2016 at 02:53AM

17
#815 - Liam S Ismail / @AC01Y

12/06/2016 at 03:59AM

17
#816 - Pierre Maoui / @poupougnac

12/17/2016 at 05:13PM

17
#817 - chocolate / @chocola81394123

12/18/2016 at 09:59AM

17
#818 - DatBoi / @DatBoi42585694

12/20/2016 at 10:48PM

17
#819 - Ashish Anand / @RealAshishAnand

12/29/2016 at 03:05PM

17
#820 - Nxgr / @Nxgr_l

01/05/2017 at 03:17PM

17
#821 - David ROBIN / @DavidRobin48

01/09/2017 at 04:38PM

17
#822 - John Turner / @turnerOnTheGrid

01/23/2017 at 12:28AM

17
#823 - Young Seok Tony Kim / @tonyapplekim

01/24/2017 at 03:59PM

17
#824 - Avian Y / @y_avian

01/30/2017 at 07:15PM

17
#825 - setNull / @dadaojiemo

02/05/2017 at 01:25PM

17
#826 - Max M / @_maxmel

02/22/2017 at 09:14PM

17
#827 - Paulo H Baumann / @PauloBaumann

03/01/2017 at 06:12PM

17
#828 - PL / @petrlaitoch

03/02/2017 at 01:14AM

17
#829 - pheech / @pheech42

03/05/2017 at 07:05PM

17
#830 - Andre Cato / @DreBear800

03/09/2017 at 01:46AM

17
#831 - Dimitar Ivanov / @dimisthoughts

03/11/2017 at 12:14AM

17
#832 - xwle / @xwle

03/11/2017 at 01:34PM

17
#833 - Михаил Борисов / @npoKA3Hbuk

03/13/2017 at 08:07PM

17
#834 - maaaaaaacs / @maaaaaacs

03/22/2017 at 11:39AM

17
#835 - oscar / @zonza_mas

03/23/2017 at 03:26PM

17
#836 - D W / @dweij1

03/29/2017 at 04:17PM

17
#837 - lorem ipsun dolor / @juliogc

04/19/2017 at 05:57PM

17
#838 - Jim Hill / @_jthill

04/27/2017 at 04:33PM

17
#839 - Eric Bock / @ericbock

04/28/2017 at 07:24PM

17
#840 - Adrian Salido / @adriansalido

05/02/2017 at 09:26PM