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
#181 - fakta om sniglar / @fakta_sniglar

03/10/2017 at 09:58AM

14
#182 - Alexander Bessonov / @nonsleepr

03/11/2017 at 06:44AM

14
#183 - Tose / @Toseim

03/12/2017 at 02:36PM

14
#184 - akanb / @GAkt6L6SlKhy8zA

03/14/2017 at 01:15AM

14
#185 - nils andersson / @andersson1_nils

03/17/2017 at 04:03PM

14
#186 - Andreas Anderbach / @anderbacha

03/19/2017 at 04:50PM

14
#187 - Carcarlo Pravettoni / @trisino

03/19/2017 at 06:36PM

14
#188 - Sergey Ryabko / @sergey_ryabko

03/20/2017 at 08:39PM

14
#189 - Cameron Jones / @Deimyts

03/22/2017 at 11:00PM

14
#190 - GVest Two / @GvestTwo

03/24/2017 at 03:53AM

14
#191 - BlackCap / @BlackCapCoder

03/24/2017 at 04:59PM

14
#192 - Tyler Holien / @tylerholien

03/24/2017 at 09:01PM

14
#193 - Nachiket Bhave / @nachiketvb

03/28/2017 at 08:40AM

14
#194 - Quark / @PuzzleQuark

04/01/2017 at 07:12PM

14
#195 - Remus Dalrymple / @bornintheflames

04/07/2017 at 01:47AM

14
#196 - yukkiy_guitar / @yukkiy_guitar

04/08/2017 at 03:23AM

14
#197 - Dmitriy / @dm_alt

04/08/2017 at 09:55AM

14
#198 - Bruce Park / @bpark0

04/09/2017 at 04:36AM

14
#199 - sharklasers552 / @sharklasers552

04/11/2017 at 02:23AM

14
#200 - Tom Houlé / @_tomhoule

04/17/2017 at 10:21AM

14
#201 - 梧桐王子 / @WutongYujie

04/19/2017 at 06:33AM

14
#202 - Dahyun Kim / @kimdhyun99

04/20/2017 at 02:51AM

14
#203 - Tom BP / @ThosBP

04/20/2017 at 09:38AM

14
#204 - Jason Hooper 🇨🇦 / @jasonincanada

04/22/2017 at 09:49PM

14
#205 - Apostolis Hardalias / @a_hardalias

04/23/2017 at 03:52PM

14
#206 - Ionel Manolache / @namnoi38

04/25/2017 at 02:36PM

14
#207 - Anton Matveev / @aush_tx

04/27/2017 at 09:05AM

14
#208 - Daniel / @Daniel00288663

04/27/2017 at 09:42AM

14
#209 - Acid One / @AcidOne2

04/28/2017 at 08:38AM

14
#210 - dfleischman / @dfleischman

04/28/2017 at 09:44PM