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
#151 - Jake Utley / @jakeutley

12/29/2016 at 02:59AM

14
#152 - tu bai / @baidatutu

01/02/2017 at 01:29PM

14
#153 - Abc Def / @phweiss1

01/03/2017 at 03:43PM

14
#154 - Alexey Filonenko / @BrightOne_LS

01/07/2017 at 08:08PM

14
#155 - William Surles / @williamsurles

01/12/2017 at 11:49PM

14
#156 - terhorst / @terhorst

01/20/2017 at 02:44AM

14
#157 - Zhihong Liu / @pieapple03

01/20/2017 at 05:34PM

14
#158 - sijinyuan / @sijinyuan

01/21/2017 at 06:34AM

14
#159 - Vimgolf / @vimgolf987

01/27/2017 at 11:40PM

14
#160 - leroy / @leroyalien

01/29/2017 at 07:11AM

14
#161 - Alexander Cederblad / @alexceder

02/02/2017 at 01:02AM

14
#162 - newself / @newself365

02/03/2017 at 06:08AM

14
#163 - aselaIllayaparachchi / @asela38

02/04/2017 at 03:21PM

14
#164 - Joel Dias / @jvgdda

02/05/2017 at 09:44AM

14
#165 - Sushrut Shirole / @sushrutshirole

02/10/2017 at 11:24PM

14
#166 - Loser Face / @heypetewhats

02/16/2017 at 06:28PM

14
#167 - eban / @eban

02/17/2017 at 09:43AM

14
#168 - Victor Chabbert / @victor_chabbert

02/20/2017 at 03:44PM

14
#169 - Tim Grebien / @tiggg

02/21/2017 at 10:52AM

14
#170 - Edras / @Edras41862627

02/22/2017 at 07:47AM

14
#171 - Notifications / @Notifications_m

02/22/2017 at 09:23PM

14
#172 - hen don / @hendon112

02/23/2017 at 08:02PM

14
#173 - Cheer / @yougec

02/27/2017 at 08:12AM

14
#174 - Nick Spoon / @be_the_spoon

03/05/2017 at 11:46AM

14
#175 - Clément Beauseigneur / @clement_bc

03/05/2017 at 05:15PM

14
#176 - Thomas Nelson / @emeraldemon

03/06/2017 at 12:12AM

14
#177 - Michael Longerich / @mlongerich

03/07/2017 at 02:20AM

14
#178 - James Pringle / @jameskpringle

03/07/2017 at 05:31PM

14
#179 - Daniel Hjelm / @dhjelm

03/08/2017 at 07:07AM

14
#180 - Jan Liu / @Jagsomarjan

03/10/2017 at 09:48AM