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
#1051 - Ton van den Heuvel / @tonheuvel

11/01/2016 at 07:06AM

18
#1052 - Ashish Narasimham / @asheeshkabob

11/10/2016 at 03:13PM

18
#1053 - Bao Long Ngo / @BaoLongNgo

11/15/2016 at 06:44PM

18
#1054 - Jon Louie / @jjisnow

11/24/2016 at 01:36AM

18
#1055 - Jiaming Zhang / @Jason721bZhang

11/26/2016 at 05:33PM

18
#1056 - Luca Giovagnoli / @ryuzaki250

11/26/2016 at 09:56PM

18
#1057 - sat0b / @sat0b

12/02/2016 at 06:31AM

18
#1058 - monster8 / @monster8

12/07/2016 at 07:27AM

18
#1059 - Richard Mörbitz / @Lodifice

12/08/2016 at 10:32PM

18
#1060 - xaf / @xafardero

12/14/2016 at 12:56PM

18
#1061 - janusz janusz / @januszjanusz20

12/15/2016 at 08:05PM

18
#1062 - Michał Dytko / @DytkoM

12/16/2016 at 08:52AM

18
#1063 - Jeremias Brand / @Jere_Brand

12/19/2016 at 04:45PM

18
#1064 - Vihan B / @vihanbh

12/19/2016 at 11:05PM

18
#1065 - Jan Eisenhauer / @EisenhauerJan

12/22/2016 at 01:26AM

18
#1066 - frobozz / @Frobozzzz

12/26/2016 at 01:52PM

18
#1067 - Social Botolinum / @SocialBot4

01/05/2017 at 09:54PM

18
#1068 - Ítalo Vieira / @italogvieira

01/21/2017 at 01:58AM

18
#1069 - Lai Bai / @laibai321

01/28/2017 at 05:20PM

18
#1070 - Josfefson Fraga / @josefs0n

02/14/2017 at 06:55PM

18
#1071 - Constantine / @ConstantineHatz

02/24/2017 at 05:41PM

18
#1072 - Julio Farah / @juliofarah

03/02/2017 at 09:54PM

18
#1073 - M Lang / @morey_lang

03/05/2017 at 09:00PM

18
#1074 - Guilherme Reis / @guitoper

03/17/2017 at 02:27PM

18
#1075 - Solomon / @Trugbildjaeger

04/04/2017 at 09:00PM

18
#1076 - JerryLee / @varXinYuan

04/05/2017 at 08:59AM

18
#1077 - vimgolfer864 / @vimgolfer864

04/07/2017 at 08:25PM

18
#1078 - Niko / @NikoKrenn

04/10/2017 at 05:01PM

18
#1079 - Will Clardy / @quexxon

04/14/2017 at 07:19PM

18
#1080 - Dónal Mac An Rí / @donalmacanri

04/20/2017 at 03:30AM