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

1879 active golfers, 7911 entries

Leaderboard (lowest score wins):
22
#541 - Saurabh / @Saurabh09299

07/21/2020 at 09:25AM

22
#542 - VQvMoKsy / @QvKsy

07/30/2020 at 06:54AM

22
#543 - Андрей / @appomsk

08/16/2020 at 12:30PM

22
#544 - Deepak Mittal / @dpacmittal

09/23/2020 at 08:36AM

22
#545 - Brad Hubbard / @BradHubbard19

10/06/2020 at 05:35AM

22
#546 - Super User / @WayanLW

10/10/2020 at 07:23AM

22
#547 - quemeraisc / @quemeraisc

11/05/2020 at 04:05PM

22
#548 - vimspam / @vimspam

11/09/2020 at 03:46AM

22
#549 - Ryan Way / @RyanWay16

12/09/2020 at 04:27AM

22
#550 - Jon Liang / @jon__liang

12/17/2020 at 05:52AM

22
#551 - Michel Viktor / @tomkpz

08/09/2021 at 05:41PM

22
#552 - moh ayaya / @AyayaMoh

09/12/2023 at 08:05PM

22
#553 - Luoyb / @Luoyb

11/01/2023 at 05:58AM

22
#554 - rayx / @ray-x

12/03/2023 at 11:28AM

23
#555 - John Braxler / @braxler

02/25/2019 at 09:41PM

23
#556 - "Smylers" / @Smylers2

02/25/2019 at 11:20PM

23
#557 - Jon Krause / @jkrause314

02/26/2019 at 02:54AM

23
#558 - Benoit Benoit / @Benoit_Tgt

02/26/2019 at 08:20AM

23
#559 - Saki Gw / @Sakigw

02/26/2019 at 10:02AM

23
#560 - Roger Stoltz / @rogsto1

02/26/2019 at 04:52PM

23
#561 - BaffaloP 🐃🎨 / @bbaffalopp

02/26/2019 at 08:20PM

23
#562 - T A / @SirAviles

02/26/2019 at 09:31PM

23
#563 - gravestench / @noisevoid

02/28/2019 at 02:23AM

23
#564 - Ivo Tripunovic / @ivo_tripunovic

02/28/2019 at 04:14PM

23
#565 - james_bunch / @james_bunch

03/02/2019 at 06:45AM

23
#566 - severij / @severij_

03/02/2019 at 12:09PM

23
#567 - Rasmus Bergström / @JRasmusBm

03/04/2019 at 02:06PM

23
#568 - zh0ng / @zh00ng

03/05/2019 at 12:52PM

23
#569 - Greg Anders / @gregory_anders

03/07/2019 at 06:41PM

23
#570 - dungeon_master / @dungeon27205778

03/08/2019 at 02:02PM