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

3579 active golfers, 17278 entries

Leaderboard (lowest score wins):
17
#1171 - Melvin Cheung / @MelvinCheung

10/30/2019 at 03:32PM

17
#1172 - Lei Kin / @kireinasorakin

11/12/2019 at 03:27PM

17
#1173 - William John Gowers / @_johngowers

11/13/2019 at 11:02AM

17
#1174 - Magnus / @praktiskt

11/17/2019 at 03:30PM

17
#1175 - Alexander Volkovsky / @alan_aers

11/17/2019 at 09:40PM

17
#1176 - shota_ogswr / @shota_ogasawara

11/18/2019 at 03:07PM

17
#1177 - Jonathan DeYoung / @JonathanDeyoung

11/28/2019 at 12:17AM

17
#1178 - Volodymyr / @vkozach

12/01/2019 at 05:01PM

17
#1179 - tomo@D2S / @e_2_718281828

12/06/2019 at 01:22PM

17
#1180 - John Otters / @OttersJohn

12/15/2019 at 04:26AM

17
#1181 - Vasily / @wolvschool

12/17/2019 at 01:13PM

17
#1182 - Simon Bucher / @SimonBucher10

12/23/2019 at 03:57PM

17
#1183 - hsxyl / @hsxyl2

12/25/2019 at 12:50PM

17
#1184 - Moye_ / @moye_

12/29/2019 at 05:08PM

17
#1185 - Anton Kriese / @AntonKriese

01/02/2020 at 01:38PM

17
#1186 - Łukasz / @_pixsll

01/21/2020 at 12:46PM

17
#1187 - Renns / @Renns95250521

02/08/2020 at 12:02AM

17
#1188 - MegaPascal / @PascalMega

02/12/2020 at 08:23AM

17
#1189 - Matthew / @Burfield12

02/17/2020 at 11:30PM

17
#1190 - Toby Hawkins / @Toby_Hawkins

03/14/2020 at 02:08PM

17
#1191 - vicver09 / @vicver091

03/19/2020 at 02:31AM

17
#1192 - 이경룡 / @smartman1996

03/21/2020 at 02:16PM

17
#1193 - antoine mas / @aneomas

03/23/2020 at 11:15AM

17
#1194 - zaid emad / @zaid_emad97

03/25/2020 at 01:35PM

17
#1195 - koyumeishi / @koyumeishi_

03/27/2020 at 07:28PM

17
#1196 - relastle / @relastle

03/29/2020 at 06:18AM

17
#1197 - Mats Faugli / @matsfaugli

03/29/2020 at 09:42PM

17
#1198 - Lop / @Numeross_

04/02/2020 at 09:25PM

17
#1199 - Daniel Fleischman / @vimgolfdaniel

04/05/2020 at 09:14PM

17
#1200 - Vinícius Hoyer / @viniciushoyer

04/20/2020 at 01:50PM