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):
18
#211 - Mislav Marohnić / @mislav

12/05/2011 at 08:43PM

18
#212 - mlu / @_mlu

07/27/2012 at 07:24AM

18
#213 - Dan Oneata / @DanOneata

08/04/2012 at 10:46AM

18
#214 - Jason Wolf / @zephyr_wolf

11/08/2012 at 05:49PM

18
#215 - Vestrobaa / @Vestrobaa

07/18/2013 at 06:41PM

18
#216 - cj / @cj01101

08/16/2013 at 10:08PM

18
#217 - James / @Dronak

08/29/2013 at 11:08PM

18
#218 - Hachez Floran / @FloranHachez

09/06/2013 at 10:55PM

18
#219 - nona urbiz / @nospampleasemam

09/28/2013 at 10:38AM

18
#220 - US Dollar Price / @USDollarPrice

11/04/2013 at 07:47PM

18
#221 - Jeremie / @jermoer

02/23/2015 at 03:58AM

18
#222 - ltn614 / @ltn614

09/21/2015 at 06:09PM

18
#223 - Chenut Ludovic / @7Brwa7

04/04/2016 at 11:54AM

18
#224 - Joe Heywood / @joehabsjoe

01/30/2018 at 09:58PM

18
#225 - Paul Draghicescu / @pdragy

03/27/2018 at 08:20AM

18
#226 - churaki / @churaki

01/26/2019 at 09:01AM

18
#227 - Johannes Riecken / @rubystallion

01/15/2020 at 08:57PM

19
#228 - Nick Klauer / @klauern

11/20/2011 at 04:15AM

19
#229 - foo / @foo88832727

10/18/2013 at 04:14PM

19
#230 - Ram Tamtam / @ramtamtamtam

06/30/2014 at 12:53PM

19
#231 - Benny Wong / @bdotdub

06/17/2015 at 07:53PM

19
#232 - Foo Bar / @FooBarely

08/17/2018 at 11:16AM

20
#233 - PA Parent / @paparent

12/31/2010 at 01:20PM

20
#234 - fuck you / @jerkassholeface

01/15/2011 at 12:41AM

20
#235 - Brandon Blakeley / @zkelvin

11/25/2017 at 05:35AM

20
#236 - wrglprmft2 / @wrglprmft2

10/18/2019 at 07:28PM

20
#237 - RockerZZY / @rocker_zzy

06/20/2020 at 06:07AM

21
#238 - lionel young / @lionelyoung

12/30/2010 at 07:31PM

21
#239 - n / @kivran

01/01/2011 at 08:02PM

21
#240 - Andrei Dragomir / @adragomir

01/01/2011 at 08:08PM