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):
21
#31 - Parsa Amini / @ParsaAmini

03/19/2019 at 01:34AM

21
#32 - ๐Ÿ…ท๐Ÿ…ฐ๐Ÿ†๐Ÿ†๐Ÿ†ˆ A. Abrahamson / @HarryAAbrahams1

03/19/2019 at 04:11AM

21
#33 - Life_is_a_lie / @RealLifeNotReal

03/21/2019 at 01:23PM

21
#34 - carly stan account / @theryangeary

03/22/2019 at 08:44PM

22
#35 - Tinko Minko / @tandikula

02/26/2019 at 06:21AM

22
#36 - hn9u / @hn9u

02/27/2019 at 09:27AM

22
#37 - Valacar / @valacar

03/04/2019 at 01:55AM

22
#38 - maq / @maq41476369

03/04/2019 at 02:50PM

22
#39 - Matthew Barry / @komputerwiz

03/04/2019 at 03:15PM

22
#40 - Mihai Crฤƒiศ›ฤƒ / @mihai_craita

03/04/2019 at 10:41PM

22
#41 - No Not / @NoNot44894988

03/10/2019 at 10:06AM

22
#42 - Animeville Horror / @InMyExperience

03/11/2019 at 02:20AM

22
#43 - Vimfiz / @vimfiz

03/22/2019 at 12:45AM

23
#44 - John Braxler / @braxler

02/25/2019 at 09:41PM

23
#45 - Smylers / @Smylers2

02/25/2019 at 11:20PM

23
#46 - Jon Krause / @jkrause314

02/26/2019 at 02:54AM

23
#47 - Benoit Tigeot / @Benoit_Tgt

02/26/2019 at 08:20AM

23
#48 - Saki Gw / @Sakigw

02/26/2019 at 10:02AM

23
#49 - Roger Stoltz / @rogsto1

02/26/2019 at 04:52PM

23
#50 - BaffaloP ๐Ÿƒ๐ŸŽจ / @bbaffalopp

02/26/2019 at 08:20PM

23
#51 - T A / @SirAviles

02/26/2019 at 09:31PM

23
#52 - noisevoid / @noisevoid

02/28/2019 at 02:23AM

23
#53 - Ivo Tripunovic / @ivo_tripunovic

02/28/2019 at 04:14PM

23
#54 - james_bunch / @james_bunch

03/02/2019 at 06:45AM

23
#55 - severij / @severij_

03/02/2019 at 12:09PM

23
#56 - Rasmus Bergstrรถm / @JRasmusBm

03/04/2019 at 02:06PM

23
#57 - zh0ng / @zh00ng

03/05/2019 at 12:52PM

23
#58 - Victor Ramirez / @virako

03/06/2019 at 11:44PM

23
#59 - Greg Anders / @gregory_anders

03/07/2019 at 06:41PM

23
#60 - platypusDancing / @platypusDancing

03/08/2019 at 05:34AM