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

351 active golfers, 1079 entries

Leaderboard (lowest score wins):
17
#181 - Marcin Szamotulski / @me_coot

11/23/2012 at 09:40AM

17
#182 - Nick Bakkegaard / @Bakkemand

11/26/2012 at 01:58PM

17
#183 - Asmund / @herrasbe

01/11/2013 at 09:17PM

17
#184 - A / @Tower_1980

07/28/2013 at 11:21AM

17
#185 - Chris Brown / @engineercyb

08/06/2013 at 11:58PM

17
#186 - Bart of Denver / @bartofdenver

08/13/2013 at 03:04AM

17
#187 - Fontaine Kévin / @DotSlash974

08/31/2013 at 05:21PM

17
#188 - isayoldchap / @isayoldchap

09/14/2013 at 12:48AM

17
#189 - Daniel Gray / @DanielFGray

10/15/2013 at 11:15AM

17
#190 - João Paiva / @jgpaiva

02/03/2014 at 12:17PM

17
#191 - LC / @leeren

08/10/2014 at 02:11AM

17
#192 - Caek / @Caek_

08/11/2014 at 01:46AM

17
#193 - Mauro Persano / @fzort

11/16/2014 at 11:30AM

17
#194 - Pete Sevander / @Sevanteri

11/13/2015 at 02:11PM

17
#195 - Cristian Lupașcu / @clupasq

02/20/2016 at 10:11AM

17
#196 - Dimitar Dimitrov / @kurkale6ka

03/18/2016 at 05:16PM

17
#197 - Ryan van Rensburg / @rdvr001

07/28/2016 at 05:38PM

17
#198 - jj johnson / @jcassj1

08/23/2016 at 01:03PM

17
#199 - Matt Rasmus / @_mattrasmus

10/11/2016 at 03:40PM

17
#200 - Bill Ruddock / @biinari

10/25/2016 at 03:15PM

17
#201 - Gurukandhamoorthi / @Gurukandhamoor1

07/14/2017 at 05:37PM

17
#202 - c0llision / @sh3llcode

01/27/2018 at 08:45PM

17
#203 - Brendan B Amdocs / @AmdocsB

09/27/2018 at 02:48PM

17
#204 - name / @name65894813

11/29/2018 at 02:45PM

17
#205 - Mihai / @mihaicristiant

01/15/2019 at 12:07PM

17
#206 - Nick Yeow / @nickyeow

05/23/2019 at 12:15PM

17
#207 - Graeme Smith / @InstaGraeme

06/08/2019 at 06:58PM

17
#208 - albalitz / @_albalitz

06/14/2019 at 12:55PM

17
#209 - Chester Yap / @Chest_ErYap

07/21/2019 at 05:46PM

17
#210 - Ivo Blöchliger / @aigledesalpes

08/23/2019 at 12:18PM