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):
24
#271 - Dry / @prolongator

12/30/2010 at 07:36PM

24
#272 - William Shackleton / @wshackleton

12/30/2010 at 09:20PM

24
#273 - sjatkinson / @sjatkinson

08/30/2011 at 03:08AM

24
#274 - Benjamin Sullivan / @benjaminsull

12/06/2011 at 03:40PM

24
#275 - Nolen Royalty / @NolenRoyalty

04/20/2012 at 07:36PM

24
#276 - Arto Vuori / @dhpe

09/01/2012 at 06:38PM

24
#277 - Mathieu Larouche / @matdube

11/19/2013 at 12:53PM

24
#278 - Patrick Pitoscia / @Patrick03960431

08/16/2014 at 12:25AM

24
#279 - Ameen P / @Ameen_P1

06/25/2016 at 06:41PM

24
#280 - Kyouma / @kyoumaJohn

10/14/2016 at 08:47PM

25
#281 - Antonio Lucca / @tonyxzt

12/30/2010 at 07:46PM

25
#282 - brett / @brettyukich

09/22/2013 at 04:16AM

25
#283 - Tj / @yrddy

08/19/2014 at 07:54AM

26
#284 - Lee Marlow / @lmarlow

12/30/2010 at 10:45PM

26
#285 - Sailesh Mittal / @saileshmittal

01/15/2011 at 05:25AM

26
#286 - Joost / @vlabakje

02/12/2011 at 12:24AM

26
#287 - Oliver Christ / @0liverChrist

09/27/2013 at 05:27PM

27
#288 - Cap / @cappy_haddock

12/30/2010 at 09:36PM

27
#289 - Peter Anselmo / @peter_anselmo

12/31/2010 at 12:58AM

27
#290 - michael caviness / @michaelmichael

12/31/2010 at 08:19PM

27
#291 - Tim Andersson / @Boerworz

04/19/2011 at 11:24PM

27
#292 - William Ott / @oddalot

04/11/2015 at 12:44AM

27
#293 - Jurica / @Jurica34581259

11/19/2018 at 09:13PM

27
#294 - Vimfiz / @vimfiz

06/13/2019 at 09:16PM

28
#295 - solsTiCe d'Hiver / @solstice_dhiver

12/30/2010 at 08:23PM

28
#296 - El Jacko / @mrjackinc

01/02/2011 at 06:22AM

28
#297 - Rolf K. / @mindleftbody

06/17/2011 at 04:08PM

28
#298 - Filippo Ghibellini / @f_ghibellini

03/05/2014 at 09:38PM

28
#299 - Micheal Wells / @michealwwells

09/11/2018 at 09:02PM

29
#300 - johan wester / @wester87

11/12/2011 at 12:36PM