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 4d1cdb0635b40650b8000527

Make Fancy Header

Make the header text stand out with surrounding asterisks

Start file
Make this a fancy header
This is some text under the fancy header.

This is another fancy header
This is some more text
End file
************************
Make this a fancy header
************************
This is some text under the fancy header.

****************************
This is another fancy header
****************************
This is some more text

View Diff

0a1
> ************************
1a3
> ************************
3a6
> ****************************
4a8
> ****************************

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 312 remaining solutions by signing in and submitting your own entry
#313 Jean-Francois C. / @jfchevrette - Score: 75 - 12/31/10 @ 00:38
O************************<Esc>1yyjp<Esc>jjjO****************************<Esc>1yyjp<Esc>:wq<CR>

0 comments


Created by: @lionelyoung

313 active golfers, 929 entries

Leaderboard (lowest score wins):
17
#181 - Cristian Lupașcu / @clupasq

02/20/2016 at 10:11AM

17
#182 - Dimitar Dimitrov / @kurkale6ka

03/18/2016 at 05:16PM

17
#183 - Ryan van Rensburg / @rdvr001

07/28/2016 at 05:38PM

17
#184 - jj johnson / @jcassj1

08/23/2016 at 01:03PM

17
#185 - Matt Rasmus / @_mattrasmus

10/11/2016 at 03:40PM

17
#186 - Bill Ruddock / @biinari

10/25/2016 at 03:15PM

17
#187 - Gurukandhamoorthi / @Gurukandhamoor1

07/14/2017 at 05:37PM

17
#188 - c0llision / @sh3llcode

01/27/2018 at 08:45PM

17
#189 - Brendan B Amdocs / @AmdocsB

09/27/2018 at 02:48PM

17
#190 - name / @name65894813

11/29/2018 at 02:45PM

17
#191 - Mihai / @mihaicristiant

01/15/2019 at 12:07PM

17
#192 - Nick Yeow / @nickyeow

05/23/2019 at 12:15PM

17
#193 - Graeme Smith / @InstaGraeme

06/08/2019 at 06:58PM

17
#194 - albalitz / @_albalitz

06/14/2019 at 12:55PM

17
#195 - Chester Yap / @Chest_ErYap

07/21/2019 at 05:46PM

17
#196 - Ivo Blöchliger / @aigledesalpes

08/23/2019 at 12:18PM

17
#197 - José / @AngelGaldamez

08/31/2019 at 03:37AM

18
#198 - Soliman Sylvain / @sylvain_soliman

12/30/2010 at 09:22PM

18
#199 - Dan Dorman / @dandorman

12/30/2010 at 10:16PM

18
#200 - Nathanael Kane / @nathanaelkane

12/31/2010 at 03:44AM

18
#201 - razvan dimescu / @razvandimescu

12/31/2010 at 07:21AM

18
#202 - 藤田祥 / Sho Fujita / @fujisho

12/31/2010 at 10:58AM

18
#203 - Pau / @masylum

12/31/2010 at 01:39PM

18
#204 - AD / @golferTest101

01/01/2011 at 04:13PM

18
#205 - Paul King / @nrocy

01/10/2011 at 10:02AM

18
#206 - Dezső Zoltán / @zakiazigazi

01/22/2011 at 09:44AM

18
#207 - Øystein Walle / @oysteinwalle

07/04/2011 at 12:05AM

18
#208 - Raymond T. Hightower / @RayHightower

07/20/2011 at 12:58AM

18
#209 - Dave / @zzdave13

07/26/2011 at 10:36PM

18
#210 - David / @dpa_92

08/02/2011 at 01:16PM