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

3955 active golfers, 10709 entries

Leaderboard (lowest score wins):
8
#2041 - Nathan Brown / @nkabrownie

03/15/2016 at 12:50PM

8
#2042 - M S / @b1790037

03/15/2016 at 05:22PM

8
#2043 - Fraser Cormack / @frasercrmck

03/15/2016 at 06:03PM

8
#2044 - hans peter / @mullovc

03/21/2016 at 07:18PM

8
#2045 - Jason Choi / @joyous_jason

03/22/2016 at 10:55AM

8
#2046 - wakeai / @wakeai

03/23/2016 at 05:08AM

8
#2047 - Pierre Stévens / @pierre_stv

03/24/2016 at 01:03PM

8
#2048 - Léo Ercolanelli / @ercolanellileo

03/24/2016 at 01:29PM

8
#2049 - Yanis KHORSI / @YanisKHORSI

03/24/2016 at 04:25PM

8
#2050 - Defts = DvToons / @defts

03/25/2016 at 07:44AM

8
#2051 - Roman Degrik / @r_Cassum

03/28/2016 at 08:58AM

8
#2052 - Dinesh Bhosale / @MrDineshBhosale

03/30/2016 at 11:07AM

8
#2053 - Louis Ritchie / @_louisr_

03/31/2016 at 04:21AM

8
#2054 - Dar Malovani / @darmalovan

03/31/2016 at 10:32AM

8
#2055 - lilach adir / @leelaRed

03/31/2016 at 11:23AM

8
#2056 - Robber Toe / @robbertoe

04/01/2016 at 02:47AM

8
#2057 - Chenut Ludovic / @7Brwa7

04/01/2016 at 08:12AM

8
#2058 - manbogot / @gmanbor

04/01/2016 at 02:46PM

8
#2059 - エクシル / @sicoh395

04/01/2016 at 03:14PM

8
#2060 - Daniel K. / @lan4k

04/02/2016 at 08:07PM

8
#2061 - Vaughn Cato / @vaughncato

04/03/2016 at 05:30PM

8
#2062 - benthemeek / @benthemeek

04/08/2016 at 04:16PM

8
#2063 - ramandeep randhawa / @rsrandhawa

04/10/2016 at 07:42PM

8
#2064 - abhinavgujjar / @abhinavgujjar

04/13/2016 at 04:12PM

8
#2065 - TeaTeaKay / @TeaTeaKay

04/14/2016 at 09:41PM

8
#2066 - HypoTech / @Obongoetco

04/15/2016 at 01:42PM

8
#2067 - Champion Pierre / @Pierre_darkirus

04/19/2016 at 05:36PM

8
#2068 - AwayFromTheNumbers / @AwayFTN

04/20/2016 at 09:02AM

8
#2069 - ymuc / @ymuchautbois

04/21/2016 at 02:08PM

8
#2070 - Christian Franke / @franke_chriss

04/21/2016 at 07:03PM