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

1853 active golfers, 7782 entries

Leaderboard (lowest score wins):
42
#1711 - Kenny Nguyen / @KennyNg72375669

08/05/2020 at 10:21AM

42
#1712 - John Smith / @JohnSmi38307095

03/19/2021 at 01:59PM

42
#1713 - Nurettin Abacı / @NurettinAbaci

08/24/2022 at 11:05PM

43
#1714 - /dev/urandom / @_dev_urandom_

04/05/2019 at 09:02AM

43
#1715 - Stephen Utley / @Utley2600

05/03/2019 at 07:16AM

43
#1716 - David Winterbottom / @codeinthehole

06/01/2019 at 08:17PM

43
#1717 - Richard Liu / @Richard90155430

08/13/2019 at 09:18PM

43
#1718 - nebbii / @nebbii_

09/24/2019 at 02:59PM

43
#1719 - Keith Klassen / @Collegekid491

11/02/2019 at 08:15PM

43
#1720 - Jan Balangue / @jbalang

01/05/2020 at 04:12AM

43
#1721 - Abhishek Sriraman / @asriraman

10/02/2020 at 01:37AM

43
#1722 - WhatDo / @WhatDo10

11/25/2020 at 10:10AM

43
#1723 - 正気・腕力・不労所得 / @tsukimizake774

12/18/2020 at 03:29PM

44
#1724 - codegeist / @code_geist

07/21/2019 at 01:11PM

44
#1725 - SR / @SpGeRo

10/01/2019 at 06:45PM

44
#1726 - x / @am_zzz_zzz

05/11/2020 at 05:28AM

44
#1727 - Alexander / @Alexand42647201

05/24/2020 at 04:57AM

44
#1728 - Pieter-Jan Lavaerts / @Pumpkin_Pie_Eat

09/15/2020 at 02:56PM

45
#1729 - Troels B. Sørensen / @trbjso

04/25/2019 at 09:00PM

45
#1730 - Matador Funkmann / @MFunkmann

05/26/2019 at 06:20PM

45
#1731 - siledUp / @siledev1

10/02/2019 at 09:37PM

45
#1732 - panakin skywalker / @_j3ffrey

05/19/2020 at 02:28PM

45
#1733 - kenotaph / @kenotaph

09/02/2020 at 10:28AM

45
#1734 - Kaustubh Murumkar / @k_austub_h

09/21/2020 at 02:27PM

45
#1735 - Ugg / @Ugg_dvmx

02/25/2021 at 07:03AM

46
#1736 - 김효섭 / @hyosub19

03/05/2019 at 07:38AM

46
#1737 - John / @John40423001

04/06/2019 at 11:20AM

46
#1738 - Raghav Subramaniam / @raghavsub

07/15/2019 at 11:37PM

46
#1739 - Tom Charles / @tomcharles__

07/22/2019 at 01:07AM

46
#1740 - dahara / @kuma_moooon

08/07/2019 at 01:25PM