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
#1141 - Niels Pedersen / @NielsLearnsPy

05/06/2018 at 08:16AM

18
#1142 - Martin H Juliussen / @martinjuliussen

05/11/2018 at 06:40PM

18
#1143 - πŸ‘β€πŸ—¨ / @_m_i_d_i

05/12/2018 at 05:38PM

18
#1144 - drumstix576 / @drumstix576

05/26/2018 at 10:35PM

18
#1145 - Jack Phelan / @bytesandwich1

06/11/2018 at 06:27AM

18
#1146 - Catalin Irimie / @CatalinIrimie

06/29/2018 at 09:49PM

18
#1147 - Alej / @mephl

07/01/2018 at 08:58PM

18
#1148 - Gemille Ford / @gemilleford

07/02/2018 at 12:59AM

18
#1149 - Espen H. Kristensen / @bgosl

07/02/2018 at 10:37PM

18
#1150 - Daniel Beck / @daniel_beck_il

07/12/2018 at 02:22PM

18
#1151 - Ian Webster / @iwebst

08/01/2018 at 01:04AM

18
#1152 - Juan Pablo Sarmiento / @PabloSarmiento

08/01/2018 at 01:04AM

18
#1153 - broken_art / @brokenart10

08/30/2018 at 02:03PM

18
#1154 - Jeff / @sir_wiggles3

09/07/2018 at 07:25AM

18
#1155 - Alejandro Santander / @_ajsantander

10/15/2018 at 04:59PM

18
#1156 - Reuben Narkwo / @reubwo

10/16/2018 at 11:00PM

18
#1157 - Dima Matrohin / @wo_ogy

10/25/2018 at 10:16PM

18
#1158 - Juliette but spooky / @namebrandloser

10/26/2018 at 10:01PM

18
#1159 - Ole Mussmann / @isbjornlabs

10/27/2018 at 11:21PM

18
#1160 - band / @band26376522

12/04/2018 at 08:08PM

18
#1161 - Marten Ringwelski / @Marteon27

12/09/2018 at 04:27PM

18
#1162 - Jamie Syme / @_jsyme

12/16/2018 at 04:11AM

18
#1163 - Sebastien Nicoud / @sebnukem

12/23/2018 at 02:45AM

18
#1164 - Visualizing Medicine / @VisualizeMed

12/28/2018 at 05:22PM

18
#1165 - γŸγγΏγƒΌοΌˆθ»’θ·γƒ‰γƒ©γ‚·γƒ«οΌ‰ / @reirei_As

01/08/2019 at 07:50AM

18
#1166 - Alex Tercete / @alextercete

01/21/2019 at 06:26PM

18
#1167 - Jack Zhou / @jzhouuuuuuuuu

01/27/2019 at 09:38AM

18
#1168 - tp971 / @tp971

01/30/2019 at 07:51PM

18
#1169 - noisevoid / @noisevoid

03/01/2019 at 10:16PM

18
#1170 - Robert Orr / @orrrobert

03/08/2019 at 07:07PM