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

2946 active golfers, 13705 entries

Leaderboard (lowest score wins):
23
#2161 - Tom / @CronutFacts

05/07/2016 at 01:27AM

23
#2162 - Subhash Shah / @subhashshah

05/10/2016 at 04:58AM

23
#2163 - imlinder / @imLinder

05/11/2016 at 11:22AM

23
#2164 - Zhao Bin / @ZhaoBin2

06/07/2016 at 03:48PM

23
#2165 - Alec Newman / @alecnwmn904

06/07/2016 at 09:07PM

23
#2166 - EVGENIY SEMENOV / @r0cketboy

06/16/2016 at 01:20PM

23
#2167 - Leavim / @LeavimTain

06/19/2016 at 03:14PM

23
#2168 - Albertux / @_Albertux

06/20/2016 at 07:19AM

23
#2169 - Vaisian / @Vaisian

07/02/2016 at 08:02PM

23
#2170 - Samir Sadek / @netsamir

07/10/2016 at 07:02AM

23
#2171 - Charles Qian / @aWarmWalrus

07/12/2016 at 10:03PM

23
#2172 - Abraao Mota / @AbraaoMot

07/13/2016 at 04:29PM

23
#2173 - Anton Pidkuiko / @pidkuiko

07/14/2016 at 08:33AM

23
#2174 - Alan Richards / @alarobric

07/16/2016 at 01:10AM

23
#2175 - Jonas / @Amnesiacu

07/20/2016 at 12:32PM

23
#2176 - no / @masongclayton

08/05/2016 at 07:32AM

23
#2177 - David Aguilera / @davilera

08/11/2016 at 02:11PM

23
#2178 - Nik Sun / @CandySunPlus

08/16/2016 at 06:29AM

23
#2179 - Ewoud Smeur / @Ewoud90

08/22/2016 at 08:48PM

23
#2180 - jweida / @AlbsteinJweida

08/23/2016 at 06:53PM

23
#2181 - Koen Hausmans / @KoenHausmans

08/25/2016 at 08:45AM

23
#2182 - Putente / @Putente_

08/25/2016 at 04:45PM

23
#2183 - Andsmat / @asdsadsandkage

08/26/2016 at 09:17AM

23
#2184 - MathiKathi / @mathikathi

08/31/2016 at 09:47PM

23
#2185 - TETSU / @kaoru6strings

09/01/2016 at 12:24AM

23
#2186 - 吞枣 / @l_tunzao

09/01/2016 at 07:36AM

23
#2187 - tetor / @t_etor

09/10/2016 at 08:28AM

23
#2188 - javier castro / @eusipial

09/12/2016 at 04:04PM

23
#2189 - コウモリ@real / @komori_meip

09/13/2016 at 05:54AM

23
#2190 - davidcgv / @davidcgv

09/13/2016 at 09:45PM