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 775 remaining solutions by signing in and submitting your own entry
#776 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_

776 active golfers, 3229 entries

Leaderboard (lowest score wins):
73
#751 - Henry Siau / @SiauHenry

05/16/2019 at 07:11AM

74
#752 - Aaron / @aaronlichtman

08/12/2019 at 12:20PM

75
#753 - Hunter Booth / @Hbooth17

05/08/2019 at 08:08PM

76
#754 - Charles Shirer / @bsdbandit

03/14/2019 at 01:28PM

76
#755 - Noah Gordon / @1noahgordon

05/30/2019 at 10:06PM

78
#756 - Christine / @iamwoman_io

05/21/2019 at 11:32PM

82
#757 - Justin Sitarz / @justinsitarz

05/30/2019 at 02:50PM

83
#758 - Justin / @tintinthong

05/13/2019 at 09:06AM

83
#759 - Andy Gnias / @GniTheSciGuy

06/22/2019 at 04:48PM

84
#760 - Jeff Anderson / @_j3ffrey

04/27/2019 at 10:10PM

84
#761 - TadikMaHladik / @TadikH

05/21/2019 at 04:42PM

84
#762 - Mike Clark / @mikeclark729

05/22/2019 at 01:27PM

85
#763 - freemink / @freemink

03/04/2019 at 07:37AM

85
#764 - Paul Logston / @PaulLogston

03/22/2019 at 01:30AM

87
#765 - Tim W / @TheArchdukeTim

03/05/2019 at 05:04AM

89
#766 - Andy Falcon-Gonzalez / @Andyfg29

05/20/2019 at 03:44AM

95
#767 - Андрей Сальников / @SHshzik

04/22/2019 at 01:48PM

96
#768 - Sina Karimi / @creamycode

05/07/2019 at 12:15PM

99
#769 - limboste / @limboste

05/04/2019 at 08:41AM

110
#770 - Jeremy Jess / @jeremyjess19

07/11/2019 at 04:57PM

111
#771 - cnekmp / @cnekmp

03/26/2019 at 01:34AM

117
#772 - Neu- / @Neu9Neu

05/24/2019 at 12:23PM

128
#773 - Alex Loftus / @Noak3

03/22/2019 at 01:05PM

130
#774 - EliTheCoder / @elithecoder

04/30/2019 at 03:36PM

162
#775 - 임덕윤 / @SnLHUF5ZYJXqI1m

07/28/2019 at 06:45PM

198
#776 - Daniel Snitkovskiy / @DSnitkovskiy

04/07/2019 at 06:27AM