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):
17
#151 - Ben Lenarts / @benlenarts

01/03/2011 at 12:25AM

17
#152 - Clément Nodet / @clementnodet

01/03/2011 at 10:35PM

17
#153 - Olivier Verdier / @OlivierVerdier

01/04/2011 at 11:03AM

17
#154 - Корнев Руслан / @woto7

01/04/2011 at 11:45PM

17
#155 - Aaron Bull Schaefer / @elasticdog

01/05/2011 at 01:01AM

17
#156 - Toto l'haricot / @nico_le_terribl

01/09/2011 at 11:11PM

17
#157 - Jacob Maine / @jacobmaine

01/11/2011 at 08:13AM

17
#158 - duckdalbe / @duckdalbe

01/14/2011 at 12:00PM

17
#159 - Kurinniy Alexander / @kurinniy

01/21/2011 at 11:31AM

17
#160 - mightyfoo / @mightyfoo

05/26/2011 at 04:38PM

17
#161 - Jyun-Fan Tsai / @fakecolor

02/11/2012 at 12:50AM

17
#162 - 無ん垢の叫び / @john_ababa

02/23/2012 at 04:47PM

17
#163 - Kerson Hsiao / @KersonHsiao

05/06/2012 at 03:58PM

17
#164 - Daniel Lundin / @danielundin

07/06/2012 at 01:10PM

17
#165 - Andrew D. Wong / @andrewdwong

07/16/2012 at 05:17PM

17
#166 - vansan / @VinceVansan

08/21/2012 at 08:24PM

17
#167 - Marcin Sza / @coot_

11/23/2012 at 09:40AM

17
#168 - Nick Bakkegaard / @Bakkemand

11/26/2012 at 01:58PM

17
#169 - Asmund / @herrasbe

01/11/2013 at 09:17PM

17
#170 - A / @Tower_1980

07/28/2013 at 11:21AM

17
#171 - Chris Brown / @engineercyb

08/06/2013 at 11:58PM

17
#172 - Bart of Denver / @bartofdenver

08/13/2013 at 03:04AM

17
#173 - Fontaine Kévin / @DotSlash974

08/31/2013 at 05:21PM

17
#174 - isayoldchap / @isayoldchap

09/14/2013 at 12:48AM

17
#175 - Daniel Gray / @DanielFGray

10/15/2013 at 11:15AM

17
#176 - João Paiva / @jgpaiva

02/03/2014 at 12:17PM

17
#177 - LC / @leeren

08/10/2014 at 02:11AM

17
#178 - Caek / @Caek_

08/11/2014 at 01:46AM

17
#179 - Mauro Persano / @fzort

11/16/2014 at 11:30AM

17
#180 - Pete Sevander / @Sevanteri

11/13/2015 at 02:11PM