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

2970 active golfers, 13860 entries

Leaderboard (lowest score wins):
16
#631 - renygma / @r3nygma

02/05/2018 at 04:30PM

16
#632 - tadashi-aikawa / @Tadashi_MAMAN

02/17/2018 at 02:41AM

16
#633 - thoughts / @bonchodiaries

02/17/2018 at 08:10PM

16
#634 - Andrew Mack / @andrewrmack1

03/02/2018 at 06:34PM

16
#635 - ewalk153 / @ewalk153

04/01/2018 at 06:29PM

16
#636 - Fichera Gaetano / @gaetanofic

04/05/2018 at 02:46PM

16
#637 - Noah Botimer / @botimer

04/15/2018 at 09:21AM

16
#638 - Yuki Sato / @yukibear_dev

04/23/2018 at 01:34AM

16
#639 - oceanarium / @oceanarium1

04/26/2018 at 01:08PM

16
#640 - Cosmic Frog / @Cozmicfrog

05/03/2018 at 06:50PM

16
#641 - Eugene / @youjeannn

05/10/2018 at 06:05PM

16
#642 - Chien-Wei Sun / @chienweisun

05/20/2018 at 03:06PM

16
#643 - liberforce / @liberforce1

05/21/2018 at 11:42PM

16
#644 - rg thomas / @rgt47

06/17/2018 at 09:36PM

16
#645 - 3admin / @achtebaby

06/29/2018 at 07:19AM

16
#646 - fucus / @fishlovebanana

07/26/2018 at 12:22AM

16
#647 - Dinesh Bhosale / @DineshRBhosale

08/04/2018 at 09:15PM

16
#648 - Simon Ingelsson / @_DeVVaN_

08/15/2018 at 02:08PM

16
#649 - Coruja Queridinha / @miriamretka

08/19/2018 at 07:12PM

16
#650 - A Programmer / @hlprogrammer

08/26/2018 at 12:47PM

16
#651 - a / @a05150445

09/06/2018 at 02:34AM

16
#652 - Ezekiel Vladimir / @EzekielVladimir

09/11/2018 at 12:49PM

16
#653 - navasankirtanpuri / @iskconnola

09/13/2018 at 02:42AM

16
#654 - Wutimatic / @sarawoot_s

09/15/2018 at 04:15PM

16
#655 - Bart3k / @Bart3k3

09/17/2018 at 07:39AM

16
#656 - pantoufle___ / @pantouf18750076

09/17/2018 at 02:34PM

16
#657 - Brendan B Amdocs / @AmdocsB

09/25/2018 at 01:06PM

16
#658 - Rasmus Bergström / @JRasmusBm

09/25/2018 at 03:46PM

16
#659 - DoubleIA / @IaDouble

09/30/2018 at 08:38AM

16
#660 - Taylor Shane Hawkins / @underempire

10/08/2018 at 03:20PM