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 110 remaining solutions by signing in and submitting your own entry
#111 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

111 active golfers, 487 entries

Leaderboard (lowest score wins):
24
#31 - Saki Gw / @Sakigw

08/23/2021 at 09:14AM

24
#32 - Jean George / @JeanGeo20504212

09/28/2021 at 04:48PM

24
#33 - A Random Vimgolfer / @AVimgolfer

02/04/2022 at 06:52AM

24
#34 - Ramtin Martin / @martin_ramtin

03/30/2022 at 01:26AM

24
#35 - Irakli Chigvaria / @tchigvaria

05/08/2022 at 03:16PM

25
#36 - Sadot Cortés / @sadotsoy

07/27/2021 at 02:11AM

25
#37 - Hourann Lin / @HourannLin

08/05/2021 at 05:38PM

25
#38 - AAbraxas / @AAbraxas1

08/08/2021 at 08:11PM

25
#39 - Il Granfiatore / @M_Klauer

08/09/2021 at 08:13PM

25
#40 - br_bookbinder / @br_bookbinder

08/14/2021 at 01:54AM

25
#41 - Babil G. Sarwar / @gsbabil

08/16/2021 at 11:15AM

25
#42 - ShookerAndBeta / @Shooker2012

06/03/2022 at 06:54PM

26
#43 - Ethan Rietz / @EthanRietz

07/25/2021 at 06:45PM

26
#44 - Clmi / @c_decaf

08/04/2021 at 04:18PM

26
#45 - Peter Pandorum / @PeterPandorum

08/07/2021 at 11:55AM

26
#46 - Dan / @dstein64

09/10/2021 at 12:45AM

26
#47 - POSIX / @po6ix

01/08/2022 at 12:43PM

26
#48 - Tim / @MarhjaKhazua

05/16/2022 at 06:27PM

27
#49 - mevmev / @mevmev8

08/10/2021 at 02:21PM

27
#50 - asd bsd / @asdbsd15569049

02/13/2022 at 06:50PM

27
#51 - Javier Contreras / @contranton

05/04/2022 at 06:25PM

27
#52 - oboki / @happy_oboki

10/20/2023 at 09:29AM

28
#53 - David Díez / @deslogica

07/26/2021 at 01:43PM

28
#54 - Julian Pottle / @jules_np

10/13/2021 at 02:28PM

29
#55 - James / @Dronak

11/02/2022 at 03:32PM

31
#56 - Rasmus Bergström / @JRasmusBm

07/23/2021 at 09:32PM

31
#57 - redraw / @redraw_

11/13/2021 at 03:37AM

31
#58 - Felix Linhardt / @FelixLinhardt

02/25/2022 at 09:41PM

31
#59 - LandR / @ListenAndR

11/01/2023 at 01:54AM

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

11/24/2021 at 02:43PM