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

3064 active golfers, 14411 entries

Leaderboard (lowest score wins):
18
#1171 - Scott / @chil2

04/01/2019 at 07:11PM

18
#1172 - Loنtre / @OtterPy

04/05/2019 at 01:01PM

18
#1173 - 이종혁 / @BluePaisa

04/17/2019 at 08:16AM

18
#1174 - Rob Pilling / @bobrippling

04/17/2019 at 01:13PM

18
#1175 - Baggykiin / @Baggykiin

04/22/2019 at 03:28AM

18
#1176 - Quinn Collins / @Quinn00239061

05/06/2019 at 07:08PM

18
#1177 - Дима / @dimkino

05/29/2019 at 08:56PM

18
#1178 - David / @Liimero

06/06/2019 at 07:48PM

18
#1179 - April / @April90303877

07/04/2019 at 04:18PM

18
#1180 - mocoma / @mocoma1

07/10/2019 at 06:53PM

18
#1181 - Zach? / @zippity_zoppity

07/22/2019 at 07:43PM

18
#1182 - Rasmus Öhman Bruno / @rasmohman

07/22/2019 at 08:04PM

18
#1183 - Hayden Wang / @HaydenWang2

07/30/2019 at 09:04AM

18
#1184 - Vinni Carlo Caños / @vinnicc

07/31/2019 at 02:54AM

18
#1185 - Hubert Chen / @Chubbert21

08/05/2019 at 12:39AM

18
#1186 - りんご / @ringo9971

08/06/2019 at 07:56AM

18
#1187 - George Sofianos / @GeoSofianos

08/12/2019 at 09:22PM

18
#1188 - Lorenzo Bertolino / @lo_bertolino

09/25/2019 at 03:25PM

18
#1189 - Jonathan Medwig / @jmedwig

10/08/2019 at 11:25AM

18
#1190 - rapan931 / @rapan931

10/11/2019 at 02:58AM

18
#1191 - Scott Rosenquist / @scottrosenquist

10/18/2019 at 01:16PM

18
#1192 - Dodge Coates / @coates_dodge

10/20/2019 at 10:19PM

18
#1193 - Alex Emelianov / @AlexEmelianov3

10/21/2019 at 01:56AM

18
#1194 - vicver09 / @vicver091

10/24/2019 at 09:12PM

18
#1195 - Gianluca Scacco / @gscacco

11/10/2019 at 07:29AM

18
#1196 - xiote / @xiote2

11/13/2019 at 10:14AM

18
#1197 - mogitate / @mutemeat

11/14/2019 at 02:41PM

18
#1198 - Rishabh Dwivedi / @Rishabh45312910

11/23/2019 at 03:05PM

18
#1199 - Winston Smith / @winstonCodes

11/26/2019 at 04:42AM

18
#1200 - うんぱっぱ / @unpa

12/06/2019 at 02:58AM