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

3194 active golfers, 15119 entries

Leaderboard (lowest score wins):
18
#1171 - Rajeev Ranjan Jha / @rajeevcreatorjh

02/10/2018 at 04:19PM

18
#1172 - andresote / @andresote

02/14/2018 at 09:26PM

18
#1173 - Douglas Perrin / @Deznormal

03/02/2018 at 04:32PM

18
#1174 - Eduardo Hashimoto / @eduhashi

03/03/2018 at 04:01PM

18
#1175 - kashikasitaro / @kashikasita

03/06/2018 at 01:29AM

18
#1176 - GreenPinguin / @GreenPinguin2

03/07/2018 at 04:06PM

18
#1177 - Plósz Péter / @ploszpe

03/19/2018 at 10:31PM

18
#1178 - Khalid Harun / @KhalidHarun

03/21/2018 at 06:29AM

18
#1179 - textonly / @textonly2018

03/22/2018 at 05:18AM

18
#1180 - saranya Krishnan / @Saranya0413

03/27/2018 at 11:31PM

18
#1181 - José Irigon / @jiirigon

04/07/2018 at 07:47PM

18
#1182 - Marcos Almeida / @almeidamarcos_

04/07/2018 at 10:48PM

18
#1183 - Florent Jaby / @Floby

04/09/2018 at 02:52PM

18
#1184 - Matt Fister / @Mistah_Fistah

04/18/2018 at 04:03AM

18
#1185 - David Porter / @phunculist

05/05/2018 at 07:08AM

18
#1186 - Niels Pedersen / @NielsLearnsPy

05/06/2018 at 08:16AM

18
#1187 - Martin H Juliussen / @martinjuliussen

05/11/2018 at 06:40PM

18
#1188 - 👁‍🗨 / @_m_i_d_i

05/12/2018 at 05:38PM

18
#1189 - drumstix576 / @drumstix576

05/26/2018 at 10:35PM

18
#1190 - Jack Phelan / @bytesandwich1

06/11/2018 at 06:27AM

18
#1191 - Catalin Irimie / @CatalinIrimie

06/29/2018 at 09:49PM

18
#1192 - Alej / @mephl

07/01/2018 at 08:58PM

18
#1193 - Gemille Ford / @gemilleford

07/02/2018 at 12:59AM

18
#1194 - Espen H. Kristensen / @bgosl

07/02/2018 at 10:37PM

18
#1195 - Daniel Beck / @daniel_beck_il

07/12/2018 at 02:22PM

18
#1196 - Ian Webster / @iwebst

08/01/2018 at 01:04AM

18
#1197 - Juan Pablo Sarmiento / @PabloSarmiento

08/01/2018 at 01:04AM

18
#1198 - broken_art / @brokenart10

08/30/2018 at 02:03PM

18
#1199 - Jeff / @sir_wiggles3

09/07/2018 at 07:25AM

18
#1200 - Alejandro Santander / @_ajsantander

10/15/2018 at 04:59PM