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

3069 active golfers, 14430 entries

Leaderboard (lowest score wins):
22
#2161 - Mohideen Imran Khan / @miknotes

04/12/2018 at 09:38AM

22
#2162 - WordPressToGo / @WordPressToGo

04/12/2018 at 07:01PM

22
#2163 - woshisanhu / @woshisanhu

04/13/2018 at 05:00PM

22
#2164 - Huỳnh Tấn / @danhuynhdev

04/19/2018 at 10:28AM

22
#2165 - Guoli Ma / @magl22

05/04/2018 at 12:25AM

22
#2166 - . / @ningOTI

05/04/2018 at 02:24PM

22
#2167 - Jean-paul Barbier / @jpdobar

05/05/2018 at 04:37PM

22
#2168 - frank p / @icedearth55

05/05/2018 at 10:53PM

22
#2169 - Ben Allan / @hellobenallan

05/08/2018 at 01:37PM

22
#2170 - d8d90d / @d8d90d

05/09/2018 at 07:17AM

22
#2171 - Jonathan Camilleri / @Too_Many_Taken

05/20/2018 at 12:45PM

22
#2172 - Patrick Huck / @tschaume

06/28/2018 at 10:59PM

22
#2173 - Henry Woolenthorpe / @woolenthorpe

07/02/2018 at 09:25AM

22
#2174 - irkb. / @kieran_bamforth

07/08/2018 at 07:20PM

22
#2175 - ハヤシ / @0__098

07/17/2018 at 11:54PM

22
#2176 - 伺か / @ojiry

07/18/2018 at 05:51AM

22
#2177 - Micheal Wells / @michealwwells

08/02/2018 at 04:53PM

22
#2178 - kevin / @kevin_sdc

09/02/2018 at 06:42AM

22
#2179 - Jan Wedekind / @wedesoft

09/02/2018 at 08:44PM

22
#2180 - Michael K. Gilbert / @michaelKgilbert

09/16/2018 at 09:28PM

22
#2181 - Stefan Heyder / @Astheny_

09/17/2018 at 09:34AM

22
#2182 - konankun / @__konankun

09/18/2018 at 03:53AM

22
#2183 - John Oleksowicz / @JohnOlek

10/05/2018 at 03:00PM

22
#2184 - Bartosz Sadel / @bartosz_sadel

10/08/2018 at 08:51PM

22
#2185 - Mr PewPew / @mrpewpew2

10/11/2018 at 07:47PM

22
#2186 - Dax / @daaawx

10/15/2018 at 06:50PM

22
#2187 - Sxcy / @SxcyX

10/23/2018 at 09:37PM

22
#2188 - vg / @vg53210350

10/28/2018 at 06:33PM

22
#2189 - Anonymos / @cyou_teyi

10/29/2018 at 08:26AM

22
#2190 - Di Peng / @DCodier

10/31/2018 at 04:59AM