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

1494 active golfers, 6288 entries

Leaderboard (lowest score wins):
85
#1471 - freemink / @freemink

03/04/2019 at 07:37AM

85
#1472 - Paul Logston / @PaulLogston

03/22/2019 at 01:30AM

87
#1473 - Tim W / @TheArchdukeTim

03/05/2019 at 05:04AM

87
#1474 - Олександр Спажев / @spazhev

09/01/2019 at 08:20AM

89
#1475 - Andy Falcon-Gonzalez / @Andyfg29

05/20/2019 at 03:44AM

92
#1476 - Sarayut Lawilai / @imkopkap

05/06/2020 at 06:29AM

94
#1477 - kindarian / @kindarian

01/04/2020 at 05:34AM

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

04/22/2019 at 01:48PM

96
#1479 - Sina Karimi / @creamycode

05/07/2019 at 12:15PM

99
#1480 - limboste / @limboste

05/04/2019 at 08:41AM

99
#1481 - Christoffer Haugom / @Haugi

01/10/2020 at 01:03PM

109
#1482 - Philip Geurin / @philgeurin

08/26/2019 at 09:30PM

110
#1483 - Jeremy Jess / @jeremyjess19

07/11/2019 at 04:57PM

111
#1484 - cnekmp / @cnekmp

03/26/2019 at 01:34AM

113
#1485 - alixwang / @wangjunal

11/14/2019 at 09:38AM

117
#1486 - Neu- / @Neu9Neu

05/24/2019 at 12:23PM

121
#1487 - Joe Xu / @CynicalDreamer2

07/01/2020 at 12:44PM

128
#1488 - Alex Loftus / @Noak3

03/22/2019 at 01:05PM

130
#1489 - EliTheCoder / @elithecoder

04/30/2019 at 03:36PM

135
#1490 - Jason Birchall / @jsonBirchall

08/30/2019 at 08:41PM

150
#1491 - Ghost / @flo1317

11/04/2019 at 01:29PM

162
#1492 - 임덕윤 / @SnLHUF5ZYJXqI1m

07/28/2019 at 06:45PM

174
#1493 - steve bolo / @steve_bolo

10/11/2019 at 08:34PM

198
#1494 - Daniel Snitkovskiy / @DSnitkovskiy

04/07/2019 at 06:27AM