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

1893 active golfers, 7975 entries

Leaderboard (lowest score wins):
41
#1741 - Ben Wainwright / @benwainwrightuk

09/26/2020 at 12:45PM

42
#1742 - gsvba / @gsvba

03/05/2019 at 01:25PM

42
#1743 - Mees / @__mees_

05/20/2019 at 01:53PM

42
#1744 - 浚宇 / @Junyu_Wang_cn

05/23/2019 at 11:25AM

42
#1745 - Samuel Cherukutty C / @cc_samuel

05/28/2019 at 02:27AM

42
#1746 - Vim Golfer / @VimGolfer6

07/04/2019 at 02:27PM

42
#1747 - Alexey Kuntsevich / @jezzarax

08/27/2019 at 12:06PM

42
#1748 - camleon / @camleon17

12/07/2019 at 09:04PM

42
#1749 - Kenny Nguyen / @KennyNg72375669

08/05/2020 at 10:21AM

42
#1750 - John Smith / @JohnSmi38307095

03/19/2021 at 01:59PM

42
#1751 - Nurettin Abacı / @NurettinAbaci

08/24/2022 at 11:05PM

42
#1752 - Omar D. / @omardrwch

12/04/2025 at 02:13PM

43
#1753 - /dev/urandom / @_dev_urandom_

04/05/2019 at 09:02AM

43
#1754 - Stephen Utley / @Utley2600

05/03/2019 at 07:16AM

43
#1755 - David Winterbottom / @codeinthehole

06/01/2019 at 08:17PM

43
#1756 - Richard Liu / @Richard90155430

08/13/2019 at 09:18PM

43
#1757 - nebbii / @nebbii_

09/24/2019 at 02:59PM

43
#1758 - Keith Klassen / @Collegekid491

11/02/2019 at 08:15PM

43
#1759 - Jan Balangue / @jbalang

01/05/2020 at 04:12AM

43
#1760 - Abhishek Sriraman / @asriraman

10/02/2020 at 01:37AM

43
#1761 - WhatDo / @WhatDo10

11/25/2020 at 10:10AM

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

12/18/2020 at 03:29PM

43
#1763 - nickGPT / @nickandbro

08/25/2024 at 12:12AM

44
#1764 - codegeist / @code_geist

07/21/2019 at 01:11PM

44
#1765 - SR / @SpGeRo

10/01/2019 at 06:45PM

44
#1766 - x / @am_zzz_zzz

05/11/2020 at 05:28AM

44
#1767 - Alexander / @Alexand42647201

05/24/2020 at 04:57AM

44
#1768 - Pieter-Jan Lavaerts / @Pumpkin_Pie_Eat

09/15/2020 at 02:56PM

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

04/25/2019 at 09:00PM

45
#1770 - Matador Funkmann / @MFunkmann

05/26/2019 at 06:20PM