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

2756 active golfers, 12650 entries

Leaderboard (lowest score wins):
19
#1351 - Schneider / @tweetschneider

10/02/2018 at 06:09PM

19
#1352 - tskepla / @tskepla

10/17/2018 at 06:21AM

19
#1353 - 王有铭 / @coder_ming

10/21/2018 at 06:00AM

19
#1354 - GUL / @GUL_THE_TWITTO

10/24/2018 at 07:08PM

19
#1355 - Картопля / @69MxdbCh4jtIZSx

10/25/2018 at 09:36PM

19
#1356 - Finn Francis / @FinnFrancis

10/26/2018 at 07:47PM

19
#1357 - nenuon / @nenuon61

10/28/2018 at 11:29AM

19
#1358 - Michael Lemur / @mlemur123

11/06/2018 at 07:08PM

19
#1359 - ゴリラ / @gorilla0513

11/08/2018 at 12:27AM

19
#1360 - justed / @justevild

11/13/2018 at 05:55PM

19
#1361 - Lydia Cupery / @LCupery

11/14/2018 at 02:53AM

19
#1362 - name / @name65894813

11/14/2018 at 02:51PM

19
#1363 - PJ Frazer / @pj_frazer

11/22/2018 at 02:46AM

19
#1364 - faisal / @faisalhackshah

11/25/2018 at 01:44AM

19
#1365 - Hunter Henrichsen / @hhenrichsen_

11/25/2018 at 11:35PM

19
#1366 - Ruslan / @versicode

11/26/2018 at 07:58PM

19
#1367 - Yggdroot / @Yggdroot

12/12/2018 at 06:14AM

19
#1368 - Julien Harbulot / @julienharbulot

12/27/2018 at 02:10AM

19
#1369 - Josep #Dempeus / @jm_s_p

12/27/2018 at 07:07PM

19
#1370 - Slawek Ligus / @ooz_ie

12/27/2018 at 10:06PM

19
#1371 -  Martijn Engler / @MartijnEngler

12/29/2018 at 09:33PM

19
#1372 - Dany Alexander Caro Saavedra / @DanyAlexanderC7

01/02/2019 at 12:20AM

19
#1373 - Dario Avitabile / @tutticapaci

01/04/2019 at 11:17AM

19
#1374 - John Smith / @JohnSmi14480159

01/09/2019 at 09:13AM

19
#1375 - py / @py97235249

01/17/2019 at 03:32AM

19
#1376 - Sam / @sam_hths

01/26/2019 at 04:23AM

19
#1377 - HuyHung / @hungdh0x5e

01/31/2019 at 02:24AM

19
#1378 - Shahin Mohammad Sali / @shaahiinms

02/05/2019 at 10:11PM

19
#1379 - Fongxuan / @FongX_L

02/13/2019 at 06:16AM

19
#1380 - Bobby Tables / @BobbyTables12

02/21/2019 at 05:57PM