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

130 active golfers, 587 entries

Leaderboard (lowest score wins):
35
#91 - MC / @MC88686523

12/05/2022 at 11:42PM

35
#92 - bonettimrc / @bonettimrc

04/28/2024 at 01:34PM

35
#93 - Paul McDowell / @etothepi16

05/21/2024 at 10:40PM

36
#94 - Russell Helmstedter / @RHelmstedter

07/28/2021 at 02:07AM

36
#95 - preethamrn / @preethamrn

10/22/2021 at 06:11AM

36
#96 - Iron Manders / @MandersIron

10/28/2022 at 10:34PM

36
#97 - Adrián Fidalgo-Díaz / @adrianFD22

12/15/2023 at 09:38PM

36
#98 - mitskobay / @mitskobay

02/28/2024 at 08:58PM

37
#99 - Ben Shephard / @_shepharddd_

08/17/2021 at 11:20AM

37
#100 - gobborg / @tamalefencer

11/29/2021 at 10:41AM

38
#101 - Kshitiz Mandal / @xitizmandal

09/21/2021 at 06:09PM

38
#102 - Levi Wheeler / @LeviWhe68726437

06/06/2022 at 06:04PM

39
#103 - anakojm / @anakojm

08/11/2022 at 12:35PM

41
#104 - Alaris Morissette / @Alaris_Villain

07/30/2021 at 04:42AM

41
#105 - Andrius / @Andrius28757706

08/30/2021 at 04:27PM

43
#106 - Leo Winters / @LeoPWinters

04/04/2022 at 11:10AM

43
#107 - Kanmuruuruu / @Kanmuruuruu

04/14/2024 at 06:58PM

44
#108 - Auri Iodide / @auri_iodide

03/06/2022 at 12:36AM

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

03/13/2022 at 01:48PM

45
#110 - dadchyyy / @dadchyyy

08/26/2021 at 02:47PM

45
#111 - Michael / @triorph

11/09/2021 at 07:15AM

45
#112 - Hugo Tai / @HugoTai100

02/09/2023 at 08:51AM

45
#113 - gpfl0712 / @gpfl0712

04/27/2024 at 02:32PM

46
#114 - Egor Voronov / @do_syscall_64

05/25/2023 at 05:58PM

47
#115 - Emiliano Ruiz Carletti / @eruizc_dev

07/23/2021 at 09:15PM

47
#116 - sap / @sap38838304

09/30/2022 at 02:13AM

48
#117 - brett / @brettyukich

08/26/2022 at 12:52PM

49
#118 - Maorun / @Maorun11

08/11/2021 at 04:08PM

49
#119 - Tommy / @Tommy75962547

08/23/2021 at 05:58AM

53
#120 - Connor / @ronnocthered

08/15/2021 at 02:22AM