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

345 active golfers, 1059 entries

Leaderboard (lowest score wins):
15
#1 - Peppa Pig / @PeppaPigSg

06/12/2024 at 04:58AM

15
#2 - Petro Mudrievskyj / @petemud

07/01/2024 at 11:01AM

16
#3 - Douglas Stockwell / @dstockwell

12/30/2010 at 07:38PM

16
#4 - Jordan Lewis / @JordanALewis

12/30/2010 at 07:41PM

16
#5 - Brad / @bjjwillis

12/31/2010 at 02:37AM

16
#6 - Dmytro Shteflyuk / @kpumuk

12/31/2010 at 04:43AM

16
#7 - rabidpraxis / @rabidpraxis

12/31/2010 at 05:51AM

16
#8 - Utkarsh Kukreti / @utkarshkukreti

12/31/2010 at 05:58AM

16
#9 - Matt Mendell / @mpmendell

12/31/2010 at 07:07AM

16
#10 - Henrik Nyh / @henrik

12/31/2010 at 09:29AM

16
#11 - Ilya Ermolin / @ermolinis

12/31/2010 at 09:49AM

16
#12 - Behnam Esfahbod / @zwnj

12/31/2010 at 12:39PM

16
#13 - Prody / @Prody225

12/31/2010 at 01:35PM

16
#14 - Matt DiGregorio / @mattgreggs

12/31/2010 at 01:44PM

16
#15 - mrlboa / @mrlboa

12/31/2010 at 02:10PM

16
#16 - Amir Hedayaty / @hedayaty

12/31/2010 at 02:21PM

16
#17 - James Conroy-Finn / @jamesconroyfinn

12/31/2010 at 04:09PM

16
#18 - Zhao Yao / @Lynch8080

12/31/2010 at 06:18PM

16
#19 - Alain Gilbert / @alain_gilbert

12/31/2010 at 07:10PM

16
#20 - Vincent Isambart / @vincentisambart

01/01/2011 at 05:48AM

16
#21 - Johan Sahlén / @jsahlen

01/01/2011 at 10:07AM

16
#22 - Pete Johns / @johnsyweb

01/02/2011 at 01:46AM

16
#23 - wyl rof / @wylrof

01/02/2011 at 10:19AM

16
#24 - Clark Fischer / @clark_fischer

01/02/2011 at 11:31PM

16
#25 - Wei Dai / @clvv42

01/02/2011 at 11:38PM

16
#26 - ls lahrs / @lslah

01/03/2011 at 09:10AM

16
#27 - derp derp / @derp__

01/03/2011 at 05:04PM

16
#28 - Tim Chase / @gumnos

01/05/2011 at 02:39AM

16
#29 - Danny O'Sullivan / @db0s

01/05/2011 at 11:44AM

16
#30 - Ujjwol Lamichhane / @Ujjwol

01/06/2011 at 02:14PM