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

1230 active golfers, 5153 entries

Leaderboard (lowest score wins):
23
#481 - aᵣᵤhᵢ / @aruhi_

09/20/2019 at 02:40PM

23
#482 - Johnson Lu / @wanderlusteee

10/06/2019 at 12:25PM

23
#483 - Sam O'Malley / @Samuel_OMalley

10/11/2019 at 02:18PM

23
#484 - Erik Engstrom / @eengstrom

10/12/2019 at 05:01AM

23
#485 - ErQ325 / @EQ325

10/13/2019 at 07:44AM

23
#486 - leo / @leo28356948

10/17/2019 at 03:14AM

23
#487 - Renan Cidale / @rnescalz

10/20/2019 at 01:37PM

23
#488 - GⷢOⷪTⷮHꙹ / @goth_wrist_cut

10/21/2019 at 09:43AM

23
#489 - yousef Ibrahim / @YucefIbrahim

10/23/2019 at 10:53PM

23
#490 - Gregory Furter / @gfurter

10/26/2019 at 07:36AM

23
#491 - skamgolf / @skamgolf

10/29/2019 at 01:13AM

23
#492 - GrimmT / @GrimmT10

11/01/2019 at 11:16AM

23
#493 - shoji541 / @shoji541

11/03/2019 at 03:22PM

23
#494 - Chris Covert / @covertcj

11/07/2019 at 02:39PM

23
#495 - xiote / @xiote2

11/13/2019 at 05:46AM

23
#496 - mogitate / @mutemeat

11/13/2019 at 03:25PM

23
#497 - pysnow530 / @pysnow530

11/18/2019 at 05:09AM

23
#498 - bassnecter / @lothedr

11/24/2019 at 08:37AM

23
#499 - Nil / @nilnoone

12/02/2019 at 03:17PM

23
#500 - tomo@D2S / @e_2_718281828

12/06/2019 at 08:48AM

23
#501 - HypoTech / @Obongoetco

12/07/2019 at 11:01PM

23
#502 - Shanmukh chaitanya / @Shanmukhchaita1

12/16/2019 at 10:39AM

23
#503 - rirze / @SourabhWasTaken

12/24/2019 at 07:37PM

23
#504 - Moye_ / @moye_

12/25/2019 at 05:07PM

23
#505 - Noah Golub / @NoahGolub2

12/27/2019 at 07:19AM

23
#506 - warwickrulez / @warwickrulez

12/30/2019 at 03:48PM

23
#507 - Oleg / @colega

01/04/2020 at 12:27AM

23
#508 - nicosierra / @nicosierra84

01/06/2020 at 12:45AM

23
#509 - Lars Haalck / @larshulk

01/08/2020 at 09:59AM

23
#510 - Gil Shotan / @gilshotan

01/13/2020 at 06:51AM