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

128 active golfers, 572 entries

Leaderboard (lowest score wins):
23
#31 - Игорь Квачёнок / @IKvacenok

06/11/2023 at 08:26PM

23
#32 - Aly Thobani / @alythobani

04/06/2024 at 12:51AM

24
#33 - garry quested / @GQuested

08/06/2021 at 02:23PM

24
#34 - Bspammer / @Bspammer

08/13/2021 at 10:38PM

24
#35 - Saki Gw / @Sakigw

08/23/2021 at 09:14AM

24
#36 - Jean George / @JeanGeo20504212

09/28/2021 at 04:48PM

24
#37 - A Random Vimgolfer / @AVimgolfer

02/04/2022 at 06:52AM

24
#38 - Ramtin Martin / @martin_ramtin

03/30/2022 at 01:26AM

24
#39 - Irakli Chigvaria / @tchigvaria

05/08/2022 at 03:16PM

24
#40 - Leon Katsnelson / @leonkatsnelson

01/01/2024 at 05:46PM

25
#41 - Sadot Cortés / @sadotsoy

07/27/2021 at 02:11AM

25
#42 - Hourann Lin / @HourannLin

08/05/2021 at 05:38PM

25
#43 - AAbraxas / @AAbraxas1

08/08/2021 at 08:11PM

25
#44 - Il Granfiatore / @M_Klauer

08/09/2021 at 08:13PM

25
#45 - br_bookbinder / @br_bookbinder

08/14/2021 at 01:54AM

25
#46 - Babil G. Sarwar / @gsbabil

08/16/2021 at 11:15AM

25
#47 - ShookerAndBeta / @Shooker2012

06/03/2022 at 06:54PM

25
#48 - Tsimon Dorakh / @Tsimon-Dorakh

05/31/2024 at 09:21PM

26
#49 - Ethan Rietz / @EthanRietz

07/25/2021 at 06:45PM

26
#50 - Clmi / @c_decaf

08/04/2021 at 04:18PM

26
#51 - Peter Pandorum / @PeterPandorum

08/07/2021 at 11:55AM

26
#52 - Dan / @dstein64

09/10/2021 at 12:45AM

26
#53 - POSIX / @po6ix

01/08/2022 at 12:43PM

26
#54 - Tim / @MarhjaKhazua

05/16/2022 at 06:27PM

27
#55 - mevmev / @mevmev8

08/10/2021 at 02:21PM

27
#56 - asd bsd / @asdbsd15569049

02/13/2022 at 06:50PM

27
#57 - Javier Contreras / @contranton

05/04/2022 at 06:25PM

27
#58 - oboki / @happy_oboki

10/20/2023 at 09:29AM

28
#59 - David Díez / @deslogica

07/26/2021 at 01:43PM

28
#60 - Julian Pottle / @jules_np

10/13/2021 at 02:28PM