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 54862fbb3f90ac0002904cf5

Just the middle

Delete the instructions at the top and bottom.

Start file
Leave only the
numbered lines.
LINE 1
LINE 2
LINE 3
That's all.
Thank you
very much.
End file
LINE 1
LINE 2
LINE 3

View Diff

1,2d0
< Leave only the
< numbered lines.
6,8d3
< That's all.
< Thank you
< very much.

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 4180 remaining solutions by signing in and submitting your own entry
#4181 휘람 / @Brandhwi_0129 - Score: 120 - 06/29/18 @ 08:34
sdj<Down><Right><Left><Down><Left><Left><Left><Left><Left><Left><Left><Left><Left><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS>ZZ<BS><BS><Esc>ZZ

@saurabh908583: sdj -- dj make sense it deletes the top 2 lines for me but if I s press sdj it does 'Leave only the' >>>> 'djave only the' ... how did you do it? do you have key map

1 comment


Created by: @udioica

4181 active golfers, 11417 entries

Leaderboard (lowest score wins):
8
#1801 - Adrien Fabre / @statox42

05/06/2015 at 05:53PM

8
#1802 - Cosmin Banu / @cosminb82

05/06/2015 at 08:04PM

8
#1803 - Chi Bong Ho / @chibongho

05/07/2015 at 01:04AM

8
#1804 - Marco Antognini / @MrHiura

05/07/2015 at 12:26PM

8
#1805 - Dave Mosher / @dmosher

05/07/2015 at 04:02PM

8
#1806 - vim_ninja / @vim_ninja

05/07/2015 at 06:57PM

8
#1807 - for2nduse / @for2nduse

05/07/2015 at 09:55PM

8
#1808 - Rene Mendoza / @rene_mendoza

05/07/2015 at 11:20PM

8
#1809 - π / @paivaspol

05/08/2015 at 02:49AM

8
#1810 - Pallav Agarwal / @pallavagarwal07

05/08/2015 at 09:51AM

8
#1811 - Austtin Schwartz / @490T2Schwartz

05/08/2015 at 02:41PM

8
#1812 - Albert Pumarola / @AlbertPumarola

05/08/2015 at 09:41PM

8
#1813 - Lindsay Swift / @_lindsai_

05/08/2015 at 09:48PM

8
#1814 - Roger Gilliar / @rogergl

05/09/2015 at 12:32PM

8
#1815 - Alexey Golev / @alexeygolev

05/09/2015 at 10:48PM

8
#1816 - Brian Lai / @blaiym

05/10/2015 at 06:52AM

8
#1817 - James Whiteman / @LucidSimple

05/10/2015 at 10:58PM

8
#1818 - Markus Kasper / @KasperBox

05/11/2015 at 03:16PM

8
#1819 - Charles Martin / @instinctive

05/11/2015 at 07:55PM

8
#1820 - Spy / @thatspysaspy

05/11/2015 at 09:31PM

8
#1821 - Ridwan Mulyadi / @ridmul

05/11/2015 at 11:52PM

8
#1822 - Arsenic Hall / @FoxLisk

05/12/2015 at 11:10PM

8
#1823 - Jonas Ng / @jnshey

05/15/2015 at 01:42PM

8
#1824 - Stephen Dolan / @Stephen_Dolan

05/15/2015 at 02:13PM

8
#1825 - Emil Soman / @emilsoman

05/17/2015 at 04:18PM

8
#1826 - peterm / @peterm0x

05/17/2015 at 05:56PM

8
#1827 - Clark DuVall / @theclarkatron

05/19/2015 at 05:40PM

8
#1828 - Austin Anderson / @ProtractorNinja

05/20/2015 at 09:14PM

8
#1829 - Emily / @EmilyDbv

05/21/2015 at 12:13AM

8
#1830 - Joel Gallant / @joelg236

05/22/2015 at 12:20AM