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):
14
#661 - Joe Cabezas / @JoeCabezas

07/02/2020 at 07:16PM

14
#662 - Jan Sturm / @JanSturm77

07/03/2020 at 06:56PM

14
#663 - Lucas Moon / @LucasMo01299826

07/08/2020 at 01:10AM

14
#664 - Ángel Durán / @AngeeelD

07/09/2020 at 09:55PM

14
#665 - PK / @pkeugine

07/10/2020 at 09:28AM

14
#666 - Adrián Delgado / @Caritativito

07/12/2020 at 01:13AM

14
#667 - Виталий Макаров / @avada_keda_bra

07/12/2020 at 04:34PM

14
#668 - Dmitry Branitskiy / @b1azer

07/14/2020 at 05:04AM

14
#669 - Jason / @jason_eveleth

07/22/2020 at 02:21PM

14
#670 - Kurtis D. Miller / @phdkurt

07/26/2020 at 01:53AM

14
#671 - Steve Frost / @FrostSteveFrost

08/01/2020 at 07:31PM

14
#672 - ぼとぼと / @boto_voto

08/03/2020 at 02:49PM

14
#673 - Till Straube / @tillstr

08/05/2020 at 11:37AM

14
#674 - David Martínez / @g0ddrinksjava

08/08/2020 at 06:23PM

14
#675 - Ivan Kwong / @IvanKwong5

08/09/2020 at 02:22PM

14
#676 - Tanzeel Kazi / @tanzeelkazi

08/11/2020 at 08:28AM

14
#677 - Андрей / @appomsk

08/16/2020 at 01:41PM

14
#678 - Cao Van Bi / @CaoVanBi235

08/19/2020 at 02:46AM

14
#679 - Bro / @SpeorgNot

08/21/2020 at 04:54PM

14
#680 - Ihor / @Ihor96382508

08/23/2020 at 09:20AM

14
#681 - Matthew Blode / @BlodeMatthew

08/26/2020 at 07:48AM

14
#682 - Udbhav Muthakana / @udbhavm_

08/27/2020 at 10:48PM

14
#683 - LeeHowl / @LeeHowAlex

09/01/2020 at 04:26PM

14
#684 - dezhonger / @dezhonger

09/01/2020 at 05:01PM

14
#685 - 王有铭 / @wangyouming1209

09/03/2020 at 06:04AM

14
#686 - akouryy / @akouryy1

09/05/2020 at 10:05AM

14
#687 - 刘宏亮 / @AkeyCoy

09/08/2020 at 02:29AM

14
#688 - M / @M88566443

09/08/2020 at 09:21PM

14
#689 - Rayduck / @RuidaDing

09/11/2020 at 06:59AM

14
#690 - Piotr Kaznowski / @kaznowski

09/13/2020 at 05:40PM