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 5c742a5a50bdf70006d43280

Box it

Create a box around a line.

Start file
My dream is to be in a box
End file
###############################
# My dream was to be in a box #
###############################

View Diff

1c1,3
< My dream is to be in a box
---
> ###############################
> # My dream was to be in a box #
> ###############################

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 176 remaining solutions by signing in and submitting your own entry
#177 Alex Loftus / @Noak3 - Score: 128 - 03/22/19 @ 13:05
i# <Esc>0$a #<Esc>yypRVhjkjhh<Esc><Esc>hhhhhhVR##############################<Esc>kO##############################<Esc>jFi;rwlRas<Esc>i <BS><Right> <Esc>k$a#j<Esc>xjja#<Esc>:wq<CR>

0 comments


Created by: @TitouanT_

177 active golfers, 619 entries

Leaderboard (lowest score wins):
29
#121 - Eric Harm / @eric_harm

03/07/2019 at 06:58PM

29
#122 - ccoffee_addictt / @ccoffee_addictt

03/21/2019 at 09:38PM

30
#123 - Andrew Shu / @montooner

03/10/2019 at 02:17AM

30
#124 - 임하정 / @m9XhkZL9XpMgt47

03/10/2019 at 07:27AM

30
#125 - Sarang Khim / @sarang_khim

03/11/2019 at 02:27AM

30
#126 - Alex Mihov / @AlexMihov

03/21/2019 at 10:49AM

31
#127 - Oskari Virtanen / @osvirtan

02/25/2019 at 06:06PM

31
#128 - Samantha Ramsey / @Samanth12934312

03/01/2019 at 04:53AM

31
#129 - Josh Cohen / @joshhostels

03/03/2019 at 12:13AM

31
#130 - DanSnow / @dododavid006

03/06/2019 at 02:08AM

31
#131 - Unidentified Person / @tripleaperson

03/06/2019 at 07:47AM

31
#132 - @coon@chaos.social / @coon_42

03/08/2019 at 02:24AM

31
#133 - Deepstack / @deepstackux

03/14/2019 at 04:52PM

31
#134 - The Joe / @computerjoe708

03/17/2019 at 03:54PM

32
#135 - Holden Lewis / @lonnez90

03/09/2019 at 12:38AM

32
#136 - Jonathan C. Dietrich / @jcdietrich

03/13/2019 at 02:49PM

33
#137 - Arend Lagendijk / @arendlagendijk

03/03/2019 at 04:49PM

33
#138 - PJ Frazer / @pj_frazer

03/04/2019 at 12:03AM

33
#139 - Raul / @Raul50174499

03/22/2019 at 10:37AM

34
#140 - Maarten Staa / @SeriousSpoon

02/27/2019 at 01:20PM

34
#141 - Gabriel / @cimourdain

03/18/2019 at 05:34PM

34
#142 - Danny / @dannywood1976

03/19/2019 at 06:05PM

35
#143 - TestaPerro / @TestaPerro

02/27/2019 at 03:44PM

35
#144 - noon / @noonknowsnonuno

03/06/2019 at 03:00PM

35
#145 - decentninja / @decentninja

03/06/2019 at 07:58PM

35
#146 - Dennis Parchkov / @DParchkov

03/15/2019 at 07:25PM

35
#147 - Raúl Cumplido / @raulcumplido

03/19/2019 at 02:46PM

36
#148 - Kevin Tindall / @kevinkjt2000

03/08/2019 at 01:20AM

36
#149 - Christopher Fujino / @chrisfujino

03/08/2019 at 02:58AM

36
#150 - Juan Manuel Fresia / @fresiajm

03/17/2019 at 03:44AM