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 3870 remaining solutions by signing in and submitting your own entry
#3871 휘람 / @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

3871 active golfers, 10444 entries

Leaderboard (lowest score wins):
8
#1801 - Mateusz Żak / @krejziwan

07/30/2015 at 09:55PM

8
#1802 - Brian Besmanoff / @BrianBesmanoff

08/06/2015 at 05:08AM

8
#1803 - Filipe Silva / @filipetwits

08/07/2015 at 12:26AM

8
#1804 - Tim Vail / @timdvail

08/07/2015 at 03:00AM

8
#1805 - Ferdev vimgolf / @fergvimgolf

08/07/2015 at 03:29AM

8
#1806 - Zak Greant / @zakgreant

08/07/2015 at 05:15AM

8
#1807 - gyermolenko / @gyermolenko_

08/09/2015 at 02:32PM

8
#1808 - ZeroKelvin Keyboard / @zkkeyboard

08/10/2015 at 03:35PM

8
#1809 - Blake Tereau / @BlakeTereau

08/11/2015 at 01:47AM

8
#1810 - Dave Neary / @nearyd

08/12/2015 at 10:14PM

8
#1811 - Veritas / @_VeritasL

08/13/2015 at 08:49AM

8
#1812 - Tyler Stinson / @tjstinso

08/14/2015 at 02:47AM

8
#1813 - Michael Rees / @reesmichael1

08/14/2015 at 05:02AM

8
#1814 - Дима Давыдов / @xaykot

08/14/2015 at 02:13PM

8
#1815 - Nick Xiao / @nicoster

08/17/2015 at 02:07PM

8
#1816 - Jaypal Singh / @JaypalSingh

08/17/2015 at 11:11PM

8
#1817 - Brendan Timmons / @BrendanTimmons

08/19/2015 at 12:54AM

8
#1818 - Colin Ameigh / @CAmeigh

08/19/2015 at 09:20AM

8
#1819 - JerryChiu / @pv31508

08/19/2015 at 02:44PM

8
#1820 - Paulo Romeira / @pauloromeira

08/21/2015 at 06:38AM

8
#1821 - David Perfors / @dnperfors

08/21/2015 at 12:45PM

8
#1822 - alex / @alexAngle8

08/21/2015 at 08:31PM

8
#1823 - Sam B / @samevanbrenner

08/22/2015 at 02:31AM

8
#1824 - Martin Galpin / @MartinRGalpin

08/22/2015 at 03:07PM

8
#1825 - randomizer user / @alsdkfhjlkadfha

08/22/2015 at 07:21PM

8
#1826 - Christophe Sicard / @tophsic

08/22/2015 at 09:07PM

8
#1827 - Sergey Semushin / @Predelnik

08/23/2015 at 11:00AM

8
#1828 - No way / @korgmademedothi

08/24/2015 at 09:46PM

8
#1829 - Jörg Meyer / @JoergMy

08/25/2015 at 09:24PM

8
#1830 - Kirill Cherkashin / @kirjs

08/31/2015 at 05:48PM