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

3467 active golfers, 16689 entries

Leaderboard (lowest score wins):
18
#1231 - Ítalo Vieira / @italogvieira

01/21/2017 at 01:58AM

18
#1232 - Lai Bai / @laibai321

01/28/2017 at 05:20PM

18
#1233 - Josfefson Fraga / @josefs0n

02/14/2017 at 06:55PM

18
#1234 - Constantine / @ConstantineHatz

02/24/2017 at 05:41PM

18
#1235 - Julio Farah / @juliofarah

03/02/2017 at 09:54PM

18
#1236 - M Lang / @morey_lang

03/05/2017 at 09:00PM

18
#1237 - Guilherme Reis / @guitoper

03/17/2017 at 02:27PM

18
#1238 - Solomon / @Trugbildjaeger

04/04/2017 at 09:00PM

18
#1239 - JerryLee / @varXinYuan

04/05/2017 at 08:59AM

18
#1240 - vimgolfer864 / @vimgolfer864

04/07/2017 at 08:25PM

18
#1241 - Niko / @NikoKrenn

04/10/2017 at 05:01PM

18
#1242 - Will Clardy / @quexxon

04/14/2017 at 07:19PM

18
#1243 - Dónal Mac An Rí / @donalmacanri

04/20/2017 at 03:30AM

18
#1244 - Danton Noriega / @dantonnoriega

04/21/2017 at 06:29AM

18
#1245 - Chris Fleming / @chrisfl

04/26/2017 at 04:49PM

18
#1246 - Fox Wilson / @FoxWilson42

05/06/2017 at 02:30AM

18
#1247 - Sam Hammer / @samhammer325

05/06/2017 at 05:38AM

18
#1248 - Hocan Eittbe / @fifthwallfly

05/10/2017 at 03:39AM

18
#1249 - Renee Zhu / @reneezhu1994

05/17/2017 at 11:00PM

18
#1250 - Nelson Zhang / @Fasoters

05/19/2017 at 05:56PM

18
#1251 - Michał Rajwa / @MichalRajwa

05/21/2017 at 06:02PM

18
#1252 - kkh / @kkhdlut

06/05/2017 at 02:24PM

18
#1253 - Gauvenator / @gauvenator

06/06/2017 at 12:44AM

18
#1254 - Sergey Lisakov / @pozitron57

06/06/2017 at 08:09PM

18
#1255 - Артем Верхоглядов / @artditel

06/19/2017 at 01:37PM

18
#1256 - Harsh Kumar / @datsleepyguy

06/21/2017 at 07:40AM

18
#1257 - Sean Wayman / @SeanInFrance

06/23/2017 at 08:04AM

18
#1258 - vimgolf player / @VimgolfPlayer

06/26/2017 at 07:46PM

18
#1259 - Anne Pacalet / @_Anne_P

07/07/2017 at 01:52PM

18
#1260 - Dan Simmons / @simmons_dan

07/11/2017 at 05:05PM