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

3953 active golfers, 10705 entries

Leaderboard (lowest score wins):
9
#3091 - John Lee / @NSA_agent_209

04/12/2015 at 06:50PM

9
#3092 - Gunnar X / @omgitsgunnar

04/13/2015 at 09:39PM

9
#3093 - Adrian Steffen / @fencer85math1

04/14/2015 at 09:59PM

9
#3094 - Florenz / @track02

04/17/2015 at 11:16AM

9
#3095 - Jean Carlo Machado / @JeanCarloMachad

04/18/2015 at 12:58PM

9
#3096 - Martijn Theunissen / @Martijn_______

04/21/2015 at 06:09PM

9
#3097 - Stefan Knudsen / @knud32

04/25/2015 at 04:34AM

9
#3098 - Brian Olpin / @bolpin

04/28/2015 at 09:35PM

9
#3099 - Rolf / @liffon

04/29/2015 at 06:02AM

9
#3100 - montalvoMiguel / @imontalvomiguel

04/29/2015 at 07:06AM

9
#3101 - Gael Roue / @gaelroue

05/02/2015 at 01:52PM

9
#3102 - Daniel Allen Deutsch / @cmmn_nighthawk

05/04/2015 at 10:22PM

9
#3103 - Matthias Bilger / @m4n2b

05/06/2015 at 07:31AM

9
#3104 - Joseph Roberts / @joey9801

05/06/2015 at 12:28PM

9
#3105 - Chris Trombley / @ctrombley

05/06/2015 at 11:00PM

9
#3106 - たんたる / @tantal_mech

05/06/2015 at 11:53PM

9
#3107 - Markus Krallinger / @markuskrall

05/07/2015 at 10:32AM

9
#3108 - m a c s f / @macsf

05/07/2015 at 01:56PM

9
#3109 - Formally Dallin / @FormallyDallin

05/07/2015 at 10:56PM

9
#3110 - Ivan Kasatenko / @sky31338

05/09/2015 at 04:11PM

9
#3111 - Steve Gibson / @thegiblet75

05/11/2015 at 02:21PM

9
#3112 - Chris / @crr0004

05/12/2015 at 07:58AM

9
#3113 - Chris Gardner / @t00manybananas

05/12/2015 at 09:45PM

9
#3114 - 𝗕 𝗥 𝗜 𝗧 𝗧 | HomeConf 2020 / @demophoon

05/13/2015 at 04:11PM

9
#3115 - Matthew Rudy Jacobs / @matthewrudy

05/15/2015 at 06:49AM

9
#3116 - GENERAL LOLIKORE / @threv

05/18/2015 at 03:16AM

9
#3117 - Simon Rycroft / @dev4rent

05/19/2015 at 01:46PM

9
#3118 - Oliver Friedrich / @slith76

05/21/2015 at 07:51PM

9
#3119 - superbriscoe / @superbriscoe

05/22/2015 at 01:28PM

9
#3120 - Alex Nussey / @AlexNussey

05/22/2015 at 06:15PM