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

2947 active golfers, 13706 entries

Leaderboard (lowest score wins):
21
#1891 - David / @Dave94_15

03/18/2018 at 06:34PM

21
#1892 - Jon Simpson / @NodeStreamer

03/21/2018 at 10:31PM

21
#1893 - johnkershaw / @johnkershaw

04/20/2018 at 04:06AM

21
#1894 - A. Grimprel / @AGrimprel

04/29/2018 at 03:08PM

21
#1895 - g5s6r2c4h / @g5forMallory

05/01/2018 at 12:35AM

21
#1896 - fdasfasfasga / @deteriorateredu

05/03/2018 at 09:36PM

21
#1897 - klaxalk / @klaxalk

05/09/2018 at 11:09AM

21
#1898 - Dennis Tang / @tangdennis

05/13/2018 at 07:20PM

21
#1899 - Patrick Haugh / @haughpj

05/15/2018 at 12:00AM

21
#1900 - golfal / @golfal2

05/27/2018 at 07:55AM

21
#1901 - chu zui / @chuzui7

05/29/2018 at 09:31AM

21
#1902 - Hampus Van E-A / @happyoccasion2

06/04/2018 at 08:06PM

21
#1903 - oracle / @oracle24986322

06/08/2018 at 05:57AM

21
#1904 - Victor Ashton / @victor_ashton

06/09/2018 at 06:40PM

21
#1905 - Chris Dean / @ChrisDe62379742

06/12/2018 at 02:13PM

21
#1906 - Christoph / @crrauch

06/18/2018 at 05:32PM

21
#1907 - mass / @mass256

07/06/2018 at 05:06AM

21
#1908 - Zak Wright / @TheZakWright

07/07/2018 at 03:35AM

21
#1909 - Jerry / @GarrisonwuJerry

07/13/2018 at 05:49PM

21
#1910 - Dylan Waits / @pianoman320

07/14/2018 at 11:55PM

21
#1911 - buz / @buzbone

07/16/2018 at 09:05PM

21
#1912 - Ragnar Hardarson / @ragnar_ha

07/20/2018 at 08:12AM

21
#1913 - 길동수 / @23BqpItUAEonueU

07/27/2018 at 07:22AM

21
#1914 - Jack Magnus / @jadomag

08/04/2018 at 06:14PM

21
#1915 - Poulpatine / @Poulpe_Py

08/11/2018 at 09:45AM

21
#1916 - Marco Magdy / @marcomacdee

08/13/2018 at 11:17PM

21
#1917 - Charles Sun / @charles_sun90

08/16/2018 at 05:23PM

21
#1918 - 村橋究理基M.Kuriki@北大 / @mkuriki_

08/17/2018 at 01:34PM

21
#1919 - Viktor Voronin / @voroninman

08/22/2018 at 09:27AM

21
#1920 - Ryan Daniels / @RyanNeilDaniels

08/28/2018 at 09:03AM