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

3870 active golfers, 18755 entries

Leaderboard (lowest score wins):
14
#241 - Jye Sawtell-Rickson / @jsawtellrickson

06/18/2017 at 09:02AM

14
#242 - Joel Meyer-Hamme / @JoelMeyerHamme

06/18/2017 at 01:18PM

14
#243 - Kawin Nikomborirak / @KNikomborirak

06/19/2017 at 06:40AM

14
#244 - Song Zheng / @songz

06/19/2017 at 09:52PM

14
#245 - Maricris Bonzo / @seemcat

06/20/2017 at 06:02AM

14
#246 - Maricris Bonzo / @seemcat

06/20/2017 at 06:20AM

14
#247 - GeneralSunbear / @GeneralSunbear

06/23/2017 at 09:10PM

14
#248 - Mayank Suman / @mayank_suman

06/24/2017 at 04:56PM

14
#249 - Pfhor / @PfhorShark

06/25/2017 at 08:35PM

14
#250 - Etai Nativ / @enativ72

06/27/2017 at 11:14AM

14
#251 - Bennett Bernardoni / @BBernardoni

06/28/2017 at 04:31PM

14
#252 - dogfooter / @dogfooter219

06/30/2017 at 08:08PM

14
#253 - wes / @_weslly

07/01/2017 at 09:24PM

14
#254 - James Thomas / @skipskipskipped

07/02/2017 at 12:17AM

14
#255 - John Marks / @__jmarks

07/03/2017 at 07:46PM

14
#256 - Adrian Englhardt / @_englhardt

07/05/2017 at 02:04PM

14
#257 - Michael Brown / @mbrown1413

07/06/2017 at 03:24AM

14
#258 - we’re going to need a bigger bot / @assaflavie

07/06/2017 at 06:19AM

14
#259 - Amalie Stokholm / @amalie_stokholm

07/09/2017 at 04:04PM

14
#260 - Matthew Broatch / @mnbroatch

07/10/2017 at 07:57PM

14
#261 - io / @iovis9

07/13/2017 at 02:48PM

14
#262 - Gabriel Siqueira / @gabrielhsiq

07/17/2017 at 06:01PM

14
#263 - devoh / @devvohh

07/28/2017 at 06:24PM

14
#264 - Karol Łukaszewicz / @Karolukaszewicz

07/31/2017 at 11:52AM

14
#265 - Alexis Andre / @MacTuitui

08/01/2017 at 02:33AM

14
#266 - Devin Gray / @devinagray

08/04/2017 at 04:15PM

14
#267 - Meg Blub / @BlubMeg

08/05/2017 at 01:57PM

14
#268 - LuftAffe3 / @LuftAffe3

08/06/2017 at 01:38PM

14
#269 - Conrad / @Conrad55084958

08/06/2017 at 08:39PM

14
#270 - Plop plop / @plopplopplop6

08/07/2017 at 09:17PM