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 1220 remaining solutions by signing in and submitting your own entry
#1221 Daniel Snitkovskiy / @DSnitkovskiy - Score: 198 - 04/07/19 @ 06:27
i<CR>jk<BS><BS><Esc>:source .vimrc<CR>$i<Right><CR>#jkbwyiwpppppp0ywppp$XXbbBBbbbbbbppppp0ywpppp$###bbjkjk<Esc><CR>nijkbbbbbbbbi# jkkjk$i##jk/my<CR><Esc>nn<CR><CR>jk$ijXjkxXjkki###jXjkXxkji<Right> #<CR><BS>jkhllw$i####jkjbbbbbbbbxiwajkbbbbbb$i#jkjji#jk:x<CR>

0 comments


Created by: @TitouanT_

1221 active golfers, 5122 entries

Leaderboard (lowest score wins):
31
#931 - zesk06 / @zesk06

09/29/2019 at 05:29AM

31
#932 - Igor Czerwinski / @igoratron

10/07/2019 at 05:11PM

31
#933 - Justin Sermeno / @justinsermeno

11/09/2019 at 04:38PM

31
#934 - manfred knapp / @fred_pooshka

11/10/2019 at 10:06PM

31
#935 - oldandslow / @oldandslow5

11/25/2019 at 06:00PM

31
#936 - Nicolas Pagny / @NicolasPagny

11/29/2019 at 03:49PM

31
#937 - Aaron Harris / @TheJoyOfPython

12/02/2019 at 12:28AM

31
#938 - Jason Neylon / @jasonneylon

12/12/2019 at 08:55PM

31
#939 - Jose Javier Gonzalez / @jjgort

12/30/2019 at 01:41AM

31
#940 - hash_chen / @hongxuchen

01/06/2020 at 03:00AM

32
#941 - Holden Lewis / @lonnez90

03/09/2019 at 12:38AM

32
#942 - Jonathan C. Dietrich / @jcdietrich

03/13/2019 at 02:49PM

32
#943 - etherflow / @etherfl0w

04/01/2019 at 03:15PM

32
#944 - HMSBoaty / @HMS_Boaty

04/09/2019 at 10:09PM

32
#945 - てんなし / @tnnsh1

04/22/2019 at 07:35AM

32
#946 - Manuel Filz / @f1l2

04/23/2019 at 04:18PM

32
#947 - Michaël Lévesque-Dion / @mlevesquedion

04/25/2019 at 12:39AM

32
#948 - kenzie / @kenziefcc

05/10/2019 at 06:04PM

32
#949 - TheJoblessGuyTalks / @the_jgt

05/27/2019 at 01:12PM

32
#950 - version 34.053a / @Age_of_machines

05/27/2019 at 01:44PM

32
#951 - kelaktaa / @kelaktaa

06/05/2019 at 04:42PM

32
#952 - SnakyPoutz / @snakypoutz

06/06/2019 at 08:24AM

32
#953 - Erik Mattfolk / @ErikMattfolk

06/06/2019 at 10:53AM

32
#954 - Noel Evans / @noelevans

06/06/2019 at 09:02PM

32
#955 - Joe Cabezas / @JoeCabezas

06/20/2019 at 06:47PM

32
#956 - David Needham / @davidmneedham

07/20/2019 at 01:53AM

32
#957 - David / @davidrapsey

08/18/2019 at 07:56AM

32
#958 - abgold / @abgold43461328

09/03/2019 at 01:03AM

32
#959 - Алексей Кашуба / @Alex_Kashuba

09/03/2019 at 07:53PM

32
#960 - Plato / @otalpster

09/05/2019 at 04:48PM