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

1867 active golfers, 7830 entries

Leaderboard (lowest score wins):
27
#1171 - Adam Bumpus / @bumpus_adam

05/13/2020 at 12:01AM

27
#1172 - Manish Baghel / @ManishBaghelz

05/14/2020 at 07:44AM

27
#1173 - Jean / @Jean12023764

06/17/2020 at 10:00PM

27
#1174 - Di Liu / @Skyerliu

06/20/2020 at 06:14PM

27
#1175 - Karol Łukaszewicz / @Karolukaszewicz

06/24/2020 at 12:18PM

27
#1176 - Richard Lowe / @b0ggyb33

06/29/2020 at 12:51PM

27
#1177 - cdan / @cdan

07/06/2020 at 10:53AM

27
#1178 - latavin / @latavin1

07/08/2020 at 06:26AM

27
#1179 - Zachary Noble / @znoble360

07/09/2020 at 01:35AM

27
#1180 - Remy_Clarke / @_Remy_Clarke_

07/17/2020 at 03:57PM

27
#1181 - 𝙁𝙖𝙩 𝙍𝙚𝙩𝙖𝙧𝙙 ® / @Rapists4Biden

08/06/2020 at 12:48AM

27
#1182 - lz2ggf / @lz2ggf

08/26/2020 at 07:14PM

27
#1183 - alrito / @alrito6

09/04/2020 at 07:29AM

27
#1184 - tskepla / @tskepla

09/04/2020 at 04:01PM

27
#1185 - Júda Ronén ☮️ (moved to Mastodon 🦣; see bio) / @JudaRonen

10/10/2020 at 07:18PM

27
#1186 - dotvimrc / @dotvimrc1

10/21/2020 at 07:04AM

27
#1187 - daniao / @dan1ao

11/01/2020 at 12:43PM

27
#1188 - tehnomaag / @tehnomaag

11/04/2020 at 11:28AM

27
#1189 - Neverlandrunner / @neverlandrunner

12/05/2020 at 01:05PM

27
#1190 - Rafael B. / @rafib

12/24/2020 at 02:21PM

27
#1191 - Alex / @alexbhandariy

05/30/2023 at 08:33PM

27
#1192 - Игорь Квачёнок / @IKvacenok

06/15/2023 at 09:06PM

28
#1193 - Benny / @b1299709

02/25/2019 at 10:10PM

28
#1194 - tenteke / @kuskus3

02/28/2019 at 03:10PM

28
#1195 - Chris AtLee / @chrisatlee

03/01/2019 at 05:58PM

28
#1196 - Sébastien Lavoie / @sgdlavoie

03/03/2019 at 04:44AM

28
#1197 - Noel Danz / @programoncoffee

03/04/2019 at 08:23PM

28
#1198 - wanghbxxxx / @wanghbxxxx

03/27/2019 at 05:43AM

28
#1199 - Tyler k the science guy / @tyler_karpe

04/02/2019 at 07:12AM

28
#1200 - Nostradevran / @nostradevran

04/12/2019 at 02:08AM