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

2955 active golfers, 13765 entries

Leaderboard (lowest score wins):
19
#1171 - sitting_like_L / @das_sawyer19l

04/07/2016 at 12:19AM

19
#1172 - エクシル / @sicoh395

04/07/2016 at 02:10PM

19
#1173 - kitsuyui / @kitsuyui

04/08/2016 at 10:22AM

19
#1174 - Robert Carmosino / @Cryptic_Storm

04/09/2016 at 08:35AM

19
#1175 - Matteo Signer / @MatteoSigner

04/12/2016 at 07:52AM

19
#1176 - Michele Cronnelle / @MikeCronn

04/13/2016 at 11:48AM

19
#1177 - fake geek guy / @light_rook

04/13/2016 at 11:39PM

19
#1178 - Slimior / @Slimior

04/14/2016 at 04:50PM

19
#1179 - Louis Caruana / @louiecaruana

04/15/2016 at 02:59AM

19
#1180 - S O / @strangelooperer

04/17/2016 at 12:28PM

19
#1181 - Yanis KHORSI / @YanisKHORSI

04/20/2016 at 03:56PM

19
#1182 - Jake Griffin / @J4K0_G

04/20/2016 at 06:35PM

19
#1183 - asdf / @asdf31x234

04/21/2016 at 06:31PM

19
#1184 - tPenguinLTG / @tpenguinltg

04/25/2016 at 02:24AM

19
#1185 - Levon Tarver / @LevonTarver

04/26/2016 at 10:05AM

19
#1186 - jamesdrake / @oppaus

04/26/2016 at 11:19PM

19
#1187 - Thomas Bailey / @cthomasbailey

04/27/2016 at 01:30PM

19
#1188 - Will Furnass / @WillFurnass

04/30/2016 at 08:32AM

19
#1189 - Scott Pierce / @_ddrscott_

04/30/2016 at 08:41PM

19
#1190 - Zach Kirsch / @sportsaremyjam

05/02/2016 at 04:40AM

19
#1191 - Joe Searle / @artouk

05/02/2016 at 07:37AM

19
#1192 - Clémence / @Clemence_Neoxia

05/02/2016 at 07:52AM

19
#1193 - Joseph Barratt / @josephmbarratt

05/02/2016 at 08:09PM

19
#1194 - alkozu / @alkozu

05/03/2016 at 08:14PM

19
#1195 - alex / @4lex

05/04/2016 at 02:18AM

19
#1196 - Giovanni Lagorio / @zxgio

05/04/2016 at 10:10AM

19
#1197 - Jason Pleau / @JasonPleau

05/06/2016 at 02:21AM

19
#1198 - Ernesto Nakamura / @ernestonakamura

05/07/2016 at 03:16AM

19
#1199 - matt / @ziegs

05/07/2016 at 09:05PM

19
#1200 - Sergio Benitez / @Sergio965

05/09/2016 at 05:17AM