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

3882 active golfers, 18801 entries

Leaderboard (lowest score wins):
40
#3811 - Dane / @studdugie

07/27/2020 at 07:21PM

41
#3812 - 방일우 / @CD5PpB36ZR5kWtk

01/06/2021 at 01:38AM

42
#3813 - Lukas Kruemel / @KruemelKobold

10/06/2016 at 07:37AM

42
#3814 - meditate / @Around_of_you

04/06/2019 at 02:42PM

42
#3815 - sitadivon / @sitadivon1

05/29/2019 at 03:40AM

42
#3816 - Raphael Marra / @rtmarra

09/06/2019 at 09:16PM

43
#3817 - OlivierLi / @LiZhongSin

11/16/2016 at 01:05AM

43
#3818 - Mekhi Thomas / @ReelGreenRanger

04/22/2019 at 11:09PM

43
#3819 - Danny / @dannywood1976

04/26/2019 at 08:41AM

43
#3820 - Bradley Cushing / @bradleycushing

09/08/2019 at 06:28PM

43
#3821 - Antón / @antonmry

06/12/2020 at 10:31AM

44
#3822 - shellfire32 / @shellfire32

11/25/2016 at 01:59PM

44
#3823 - HMSBoaty / @HMS_Boaty

10/30/2017 at 01:50PM

44
#3824 - Shubham Tatvamasi / @shubhctl

05/12/2020 at 04:31AM

44
#3825 - Temp / @San5nom

06/20/2020 at 08:34PM

44
#3826 - Justin Fisher / @justinfisherr

11/02/2024 at 05:45PM

46
#3827 - junkemail9733 / @junkemail9733

06/08/2018 at 11:12PM

46
#3828 - Khoa Anh Nguyen / @ca0932

01/03/2019 at 08:08AM

46
#3829 - redwood / @redwood80235716

01/05/2020 at 01:40AM

46
#3830 - agm401 / @agm401

07/11/2020 at 06:41PM

46
#3831 - Akshay Aurora / @akshayaurora

10/11/2024 at 08:44PM

47
#3832 - ldkjfjlskjdfsk / @lskjdfaljskdf

02/28/2018 at 03:54PM

47
#3833 - Prabhat Ranjan / @prabhatr27

11/05/2020 at 08:31PM

48
#3834 - Ola Johansson / @oj_johansson

04/16/2018 at 02:04PM

48
#3835 - zkunsang / @zkunsang

04/14/2019 at 01:42PM

50
#3836 - AJ de Leon / @aj_deleon

07/31/2018 at 11:27PM

50
#3837 - Pettsonator / @Pettsonator

06/12/2020 at 09:08AM

52
#3838 - Cathal McGuire / @cmcguire79

08/28/2018 at 08:11AM

52
#3839 - Benoit Benoit / @Benoit_Tgt

07/17/2019 at 07:36AM

52
#3840 - Gomez / @poster_eco

11/25/2019 at 05:14AM