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 2833 remaining solutions by signing in and submitting your own entry
#2834 호도르 / @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

2834 active golfers, 13037 entries

Leaderboard (lowest score wins):
19
#1141 - Zach Kirsch / @sportsaremyjam

05/02/2016 at 04:40AM

19
#1142 - Joe Searle / @artouk

05/02/2016 at 07:37AM

19
#1143 - Clémence / @Clemence_Neoxia

05/02/2016 at 07:52AM

19
#1144 - Joseph Barratt / @josephmbarratt

05/02/2016 at 08:09PM

19
#1145 - alkozu / @alkozu

05/03/2016 at 08:14PM

19
#1146 - alex / @4lex

05/04/2016 at 02:18AM

19
#1147 - Giovanni Lagorio / @zxgio

05/04/2016 at 10:10AM

19
#1148 - Jason Pleau / @JasonPleau

05/06/2016 at 02:21AM

19
#1149 - Ernesto Nakamura / @ernestonakamura

05/07/2016 at 03:16AM

19
#1150 - matt / @ziegs

05/07/2016 at 09:05PM

19
#1151 - Sergio Benitez / @Sergio965

05/09/2016 at 05:17AM

19
#1152 - Vivek Bose / @Strangelich

05/11/2016 at 04:04PM

19
#1153 - Ben Hill / @KaizenSoze70

05/11/2016 at 05:31PM

19
#1154 - Kyle Kurtenbach / @kurtenbachkyle

05/11/2016 at 06:29PM

19
#1155 - anoniem / @asq123sadf

05/11/2016 at 11:14PM

19
#1156 - kalq / @KamilKraszewski

05/12/2016 at 03:37AM

19
#1157 - 朱国栋 / @GuodongZhu

05/17/2016 at 02:42AM

19
#1158 - Dom Williams / @DomWilliams0

05/24/2016 at 06:01PM

19
#1159 - some call me mattp / @mattpep

05/27/2016 at 01:19PM

19
#1160 - Kenny Lau / @kkkennnny

06/01/2016 at 07:47AM

19
#1161 - James Potter / @JJPotterkowski

06/01/2016 at 02:26PM

19
#1162 - Elliott Beach / @718282Beach

06/03/2016 at 02:46AM

19
#1163 - Marshall Croes / @marshallcroes

06/07/2016 at 10:24PM

19
#1164 - el R / @el_r

06/10/2016 at 09:40AM

19
#1165 - Mel / @Sprocklem

06/12/2016 at 08:42PM

19
#1166 - VG / @DaEmpo

06/12/2016 at 09:30PM

19
#1167 - Robert Basic / @robertbasic

06/14/2016 at 04:30AM

19
#1168 - Robert Perce / @robertperce

06/14/2016 at 04:22PM

19
#1169 - Jacob Niehus / @wilywampa

06/18/2016 at 07:02PM

19
#1170 - Timothy Caleb Nordlo / @tnordloh

06/22/2016 at 04:34AM