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 9v0060fb2aa900000000020b

Learn to ask for :help

Learn to use the help to reduce your strokes...

Start file
 
End file
			VIM - main help file
									 k
      Move around:  Use the cursor keys, or "h" to go left,	       h   l
		    "j" to go down, "k" to go up, "l" to go right.	 j
Close this window:  Use ":q<Enter>".
   Get out of Vim:  Use ":qa!<Enter>" (careful, all changes are lost!).
------------------------------------------------------------------------------
*bars*		Bars example
Jump to a subject:  Position the cursor on a tag (e.g. |bars|) and hit CTRL-].

View Diff

1c1,9
<  
---
> 			VIM - main help file
> 									 k
>       Move around:  Use the cursor keys, or "h" to go left,	       h   l
> 		    "j" to go down, "k" to go up, "l" to go right.	 j
> Close this window:  Use ":q<Enter>".
>    Get out of Vim:  Use ":qa!<Enter>" (careful, all changes are lost!).
> ------------------------------------------------------------------------------
> *bars*		Bars example
> Jump to a subject:  Position the cursor on a tag (e.g. |bars|) and hit CTRL-].

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 101 remaining solutions by signing in and submitting your own entry
#102 damien / @GreatTestyTest - Score: 177 - 07/31/21 @ 16:00
:help<CR>jjvjjjjjjj$y:q<CR><Esc>p:help<CR>jk/bars<CR>nnjkkhhhhhhhhhhhvj$y:q<CR>jjjjjj<Esc>pjjddjdd<Esc>ja<Esc>jkkkkkkkkhhhhxhhhhhh<Esc>hhhb<Esc><Esc>0<Esc>jkkhhhhhhjkb<Esc>xhhhhhhh<Esc>u<Esc>hhhjkxxx h<Esc>i<Tab><Tab><Tab><Esc>jkjjjjjjjjjjjjjjjjjjjjk:w<CR>:q<CR>

0 comments


Created by: @EthanRietz

102 active golfers, 447 entries

Leaderboard (lowest score wins):
32
#61 - vimgolfaccfekxh / @vimgolfaccfekxh

10/27/2022 at 06:45PM

33
#62 - Tom / @Toromtomtom

08/11/2021 at 12:24PM

34
#63 - Sergio / @SergioVl12

07/24/2021 at 04:10AM

34
#64 - Professor of Canine Ludology / @EthanMcQuarrie

08/13/2021 at 05:17AM

34
#65 - vimgolfleo / @vimgolfleo1

10/17/2021 at 12:04PM

34
#66 - Alex Fall / @alexandfall

03/09/2022 at 06:54PM

34
#67 - Alex Lewin / @_AlexLewin

07/18/2022 at 10:38PM

35
#68 - Drew Abram / @drewma2k

10/06/2021 at 06:58PM

35
#69 - deusthe / @deusthe91

12/18/2021 at 01:47PM

35
#70 - Rodney Visser / @_Radnus

03/15/2022 at 08:26PM

35
#71 - redbigyesnoGoThenWhy / @redbigyesno

05/30/2022 at 01:50PM

35
#72 - Nick Salesky / @NickSalesky

08/17/2022 at 03:47AM

35
#73 - Ratkovszki István / @RatkovszkiIstvn

09/07/2022 at 10:06PM

36
#74 - Russell Helmstedter / @RHelmstedter

07/28/2021 at 02:07AM

36
#75 - preethamrn / @preethamrn

10/22/2021 at 06:11AM

36
#76 - Iron Manders / @MandersIron

10/28/2022 at 10:34PM

37
#77 - Ben Shephard / @_shepharddd_

08/17/2021 at 11:20AM

37
#78 - gobborg / @tamalefencer

11/29/2021 at 10:41AM

38
#79 - Kshitiz Mandal / @xitizmandal

09/21/2021 at 06:09PM

38
#80 - Levi Wheeler / @LeviWhe68726437

06/06/2022 at 06:04PM

39
#81 - anakojm / @anakojm

08/11/2022 at 12:35PM

41
#82 - Alaris Morissette / @Alaris_Villain

07/30/2021 at 04:42AM

41
#83 - Andrius / @Andrius28757706

08/30/2021 at 04:27PM

43
#84 - Leo Winters / @LeoPWinters

04/04/2022 at 11:10AM

44
#85 - Auri Iodide / @auri_iodide

03/06/2022 at 12:36AM

44
#86 - math is what I hate / @mpnmbn

03/13/2022 at 01:48PM

45
#87 - dadchyyy / @dadchyyy

08/26/2021 at 02:47PM

45
#88 - Michael / @triorph

11/09/2021 at 07:15AM

47
#89 - Emiliano Ruiz Carletti / @eruizc_dev

07/23/2021 at 09:15PM

47
#90 - sap / @sap38838304

09/30/2022 at 02:13AM