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

1308 active golfers, 5487 entries

Leaderboard (lowest score wins):
43
#1201 - Stephen Utley / @Utley2600

05/03/2019 at 07:16AM

43
#1202 - David Winterbottom / @codeinthehole

06/01/2019 at 08:17PM

43
#1203 - Richard Liu / @Richard90155430

08/13/2019 at 09:18PM

43
#1204 - nebbii / @nebbii_

09/24/2019 at 02:59PM

43
#1205 - Keith Klassen / @Collegekid491

11/02/2019 at 08:15PM

43
#1206 - Jan Balangue / @jbalang

01/05/2020 at 04:12AM

44
#1207 - codegeist / @code_geist

07/21/2019 at 01:11PM

44
#1208 - SR / @SpGeRo

10/01/2019 at 06:45PM

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

04/25/2019 at 09:00PM

45
#1210 - Matador Funkmann / @MFunkmann

05/26/2019 at 06:20PM

45
#1211 - siledUp / @siledev1

10/02/2019 at 09:37PM

46
#1212 - 김효섭 / @hyosub19

03/05/2019 at 07:38AM

46
#1213 - John / @John40423001

04/06/2019 at 11:20AM

46
#1214 - Raghav Subramaniam / @raghavsub

07/15/2019 at 11:37PM

46
#1215 - Tom Charles / @tomcharles__

07/22/2019 at 01:07AM

46
#1216 - dahara / @kuma_moooon

08/07/2019 at 01:25PM

47
#1217 - Mitchell Hanberg / @mitchhanberg

03/19/2019 at 04:24PM

47
#1218 - _ / @bastla

05/02/2019 at 12:11PM

47
#1219 - Víctor López / @viticlick

05/08/2019 at 11:52AM

47
#1220 - Jacob McCrumb / @MccrumbJacob

05/29/2019 at 06:47PM

47
#1221 - soundscope / @__soundscope__

06/25/2019 at 12:46PM

47
#1222 - ace_of_art_club / @aceofartclub1

12/16/2019 at 03:59PM

48
#1223 - Jessica Wang / @jesszwang

04/11/2019 at 10:00PM

49
#1224 - Benjamin Pelletier / @benjipelletier

09/24/2019 at 01:28PM

49
#1225 - Osama Abdelsatar / @Osa_ahlawy

03/20/2020 at 11:56PM

50
#1226 - Kishou Yusa / @YusaKishou

07/18/2019 at 04:55AM

50
#1227 - Zviad Mgaloblishvili / @ZMgaloblishvili

10/10/2019 at 08:16PM

50
#1228 - Max Coplan / @mchcopl

12/21/2019 at 07:22PM

51
#1229 - Rajasegar Chandran / @rajasegar_c

09/25/2019 at 05:23AM

52
#1230 - Matthias Kausl / @sig_segv

04/22/2019 at 02:50PM