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

0 comments


Created by: @lionelyoung

312 active golfers, 928 entries

Leaderboard (lowest score wins):
16
#91 - eBrnd / @eBrnd

11/05/2014 at 10:20PM

16
#92 - Filipe Almeida / @filipe_almeida

01/01/2015 at 04:27AM

16
#93 - kimber gonzalez / @kimberlycreates

01/21/2015 at 02:58PM

16
#94 - Alan Berndt / @bentglasstube

02/23/2015 at 06:44PM

16
#95 - pftb12345 / @pftb12345

04/11/2015 at 05:23AM

16
#96 - David Nguyen / @nguydavi

06/13/2015 at 02:13PM

16
#97 - Evan Coleman / @edc1591

06/17/2015 at 08:07PM

16
#98 - Ben Vandervalk / @benvvalk

09/22/2015 at 05:20AM

16
#99 - Walker Boh / @walker_boh

10/13/2015 at 08:43AM

16
#100 - Alain / @ducouloa

11/30/2015 at 08:56PM

16
#101 - Jon Krause / @jkrause314

12/19/2015 at 01:06AM

16
#102 - Ikypiky / @nerdbeereis

06/16/2016 at 08:30AM

16
#103 - Jeremiah Goyette / @JeremiahGoyette

08/05/2016 at 12:35AM

16
#104 - swarkEafs / @EafsSwark

08/14/2016 at 08:41PM

16
#105 - Zhihong Liu / @pieapple03

03/03/2017 at 03:56PM

16
#106 - Wang Wu / @rubepeg

05/13/2017 at 07:25AM

16
#107 - Turkey Man / @lvturkeyman

11/23/2017 at 05:52PM

16
#108 - BarbaJol / @drpproteus

01/08/2018 at 06:47PM

16
#109 - Ben Hill / @KaizenSoze70

01/31/2018 at 01:15PM

16
#110 - DHM / @DHM29978992

04/30/2018 at 03:18AM

16
#111 - Evgeny`s Kindle / @EvgenyKindle

04/30/2018 at 07:13AM

16
#112 - Eric Moss / @NotEricMoss

11/07/2018 at 02:27PM

16
#113 - Dax / @zacoxi

12/06/2018 at 04:11AM

16
#114 - Bart Kleijngeld / @BartKleijngeld

12/25/2018 at 12:17AM

16
#115 - alekfed / @alek_fed

04/16/2019 at 01:09PM

16
#116 - majo senf / @majo_senf

06/24/2019 at 03:08PM

16
#117 - Lory / @Lory46845742

11/25/2019 at 03:48PM

16
#118 - Miłosz Łakomy / @foobar01123

01/10/2020 at 04:47AM

17
#119 - Marian Schubert / @MarianSchubert

12/30/2010 at 07:44PM

17
#120 - nooodl / @nooodl

12/30/2010 at 07:59PM