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
#31 - Oleg Roshupkin / @jjjahson

01/20/2011 at 01:51PM

16
#32 - xhtmlforum / @xhtmlforum

01/25/2011 at 07:48AM

16
#33 - Federico Galassi / @federicogalassi

01/25/2011 at 11:20PM

16
#34 - h_east (トロッコ6個) / @h_east

01/29/2011 at 05:40PM

16
#35 - Pavlo Klets / @p01nt

02/25/2011 at 10:50AM

16
#36 - vg / @vimgolfer

02/27/2011 at 08:50PM

16
#37 - Dragan Cvetinovic / @kawkafi

05/12/2011 at 09:52PM

16
#38 - (Emile (Swarts)) / @EmileSwarts

06/08/2011 at 03:40PM

16
#39 - Justin Love / @wondible

06/30/2011 at 01:08PM

16
#40 - Dave Lyon / @daveisonthego

07/20/2011 at 12:51AM

16
#41 - Aaron Kalin / @martinisoft

07/20/2011 at 12:56AM

16
#42 - Hu Junfeng / @junfeng

07/21/2011 at 12:45PM

16
#43 - Jesús Espino / @jespinog

09/05/2011 at 07:07PM

16
#44 - p0ckets / @p0ckets

10/07/2011 at 08:31PM

16
#45 - William Dunand / @wdunand

11/29/2011 at 01:49AM

16
#46 - Trevor Powell / @DoomedBunnies

11/30/2011 at 07:22AM

16
#47 - You-Siang Lin / @yslinnctu

12/02/2011 at 05:00AM

16
#48 - Jakub Arnold / @darthdeus

12/19/2011 at 05:24PM

16
#49 - Jaime A. Sánchez / @jashbeta

12/22/2011 at 05:37AM

16
#50 - Xavier Nayrac / @lkdjiin

12/30/2011 at 03:05PM

16
#51 - Arton0306 / @Arton0306

01/04/2012 at 04:49PM

16
#52 - ShikChen / @ShikChen

01/06/2012 at 04:43AM

16
#53 - Pei-Lun Lee / @ypcatw

01/06/2012 at 01:55PM

16
#54 - Albin Olsson / @sentenser

01/15/2012 at 07:31PM

16
#55 - maxthoursie / @maxthoursie

01/30/2012 at 08:08PM

16
#56 - Renat Aksitov / @Korvin79

02/07/2012 at 05:23PM

16
#57 - Clem / @clemst

02/28/2012 at 06:57PM

16
#58 - Garry Shutler / @gshutler

03/31/2012 at 06:27PM

16
#59 - Josh Davey / @joshuadavey

04/19/2012 at 01:55AM

16
#60 - Brian Dunn / @higgaion

04/19/2012 at 01:59AM