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):
24
#31 - A Random Vimgolfer / @AVimgolfer

02/04/2022 at 06:52AM

24
#32 - Ramtin Martin / @martin_ramtin

03/30/2022 at 01:26AM

24
#33 - Irakli Chigvaria / @tchigvaria

05/08/2022 at 03:16PM

25
#34 - Sadot Cortés / @sadotsoy

07/27/2021 at 02:11AM

25
#35 - Hourann Lin / @HourannLin

08/05/2021 at 05:38PM

25
#36 - AAbraxas / @AAbraxas1

08/08/2021 at 08:11PM

25
#37 - Il Granfiatore / @M_Klauer

08/09/2021 at 08:13PM

25
#38 - br_bookbinder / @br_bookbinder

08/14/2021 at 01:54AM

25
#39 - Babil G. Sarwar / @gsbabil

08/16/2021 at 11:15AM

25
#40 - ShookerAndBeta / @Shooker2012

06/03/2022 at 06:54PM

26
#41 - Ethan Rietz / @EthanRietz

07/25/2021 at 06:45PM

26
#42 - Clmi / @c_decaf

08/04/2021 at 04:18PM

26
#43 - Peter Pandorum / @PeterPandorum

08/07/2021 at 11:55AM

26
#44 - Dan / @dstein64

09/10/2021 at 12:45AM

26
#45 - POSIX / @po6ix

01/08/2022 at 12:43PM

26
#46 - Tim / @MarhjaKhazua

05/16/2022 at 06:27PM

27
#47 - mevmev / @mevmev8

08/10/2021 at 02:21PM

27
#48 - asd bsd / @asdbsd15569049

02/13/2022 at 06:50PM

27
#49 - Javier Contreras / @contranton

05/04/2022 at 06:25PM

28
#50 - David Díez / @deslogica

07/26/2021 at 01:43PM

28
#51 - Julian Pottle / @jules_np

10/13/2021 at 02:28PM

29
#52 - James / @Dronak

11/02/2022 at 03:32PM

31
#53 - Rasmus Bergström / @JRasmusBm

07/23/2021 at 09:32PM

31
#54 - redraw / @redraw_

11/13/2021 at 03:37AM

31
#55 - Felix Linhardt / @FelixLinhardt

02/25/2022 at 09:41PM

32
#56 - 深窓の令嬢@ドクター / @arbino1031

11/24/2021 at 02:43PM

32
#57 - Ryan Cleary / @ry_guy41

12/24/2021 at 02:36AM

32
#58 - Sammit / @somemeatjain

01/23/2022 at 11:31AM

32
#59 - Justin Haaheim / @justinhaaheim

02/25/2022 at 09:38PM

32
#60 - Alex / @AlexanderHeatl2

05/21/2022 at 05:18PM