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

1006 active golfers, 4192 entries

Leaderboard (lowest score wins):
22
#271 - Jörg Meyer / @JoergMy

10/19/2019 at 07:32PM

22
#272 - Alex Emelianov / @AlexEmelianov3

10/20/2019 at 01:07AM

22
#273 - GolfingWithVim1 / @Vim1With

10/20/2019 at 02:25PM

22
#274 - Adrian Goldwaser / @AdrianGoldwaser

10/21/2019 at 06:54AM

22
#275 - Incognita / @flutterlice

10/21/2019 at 11:30AM

22
#276 - Marc8888 / @8888Marc

10/26/2019 at 05:55AM

22
#277 - Lory / @Lory46845742

10/29/2019 at 10:53AM

22
#278 - Tokos Apos / @AposTokosapos

11/04/2019 at 09:56AM

22
#279 - fritz_carraldo / @fritz_carraldo

11/08/2019 at 04:13AM

22
#280 - Gianluca Scacco / @gscacco

11/09/2019 at 09:21PM

22
#281 - Lei Kin / @kireinasorakin

11/12/2019 at 10:57AM

22
#282 - Sebastien Premont / @spremont

11/12/2019 at 02:37PM

23
#283 - John Braxler / @braxler

02/25/2019 at 09:41PM

23
#284 - Smylers / @Smylers2

02/25/2019 at 11:20PM

23
#285 - Jon Krause / @jkrause314

02/26/2019 at 02:54AM

23
#286 - Benoit Benoit / @Benoit_Tgt

02/26/2019 at 08:20AM

23
#287 - Saki Gw / @Sakigw

02/26/2019 at 10:02AM

23
#288 - Roger Stoltz / @rogsto1

02/26/2019 at 04:52PM

23
#289 - BaffaloP 🐃🎨 / @bbaffalopp

02/26/2019 at 08:20PM

23
#290 - T A / @SirAviles

02/26/2019 at 09:31PM

23
#291 - noisevoid / @noisevoid

02/28/2019 at 02:23AM

23
#292 - Ivo Tripunovic / @ivo_tripunovic

02/28/2019 at 04:14PM

23
#293 - james_bunch / @james_bunch

03/02/2019 at 06:45AM

23
#294 - severij / @severij_

03/02/2019 at 12:09PM

23
#295 - Rasmus Bergström / @JRasmusBm

03/04/2019 at 02:06PM

23
#296 - zh0ng / @zh00ng

03/05/2019 at 12:52PM

23
#297 - Victor Ramirez / @virako

03/06/2019 at 11:44PM

23
#298 - Greg Anders / @gregory_anders

03/07/2019 at 06:41PM

23
#299 - dungeon_master / @dungeon27205778

03/08/2019 at 02:02PM

23
#300 - Kyle Tilman / @kyletilman

03/08/2019 at 08:25PM