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

454 active golfers, 1827 entries

Leaderboard (lowest score wins):
37
#391 - Alex / @thekyz

04/17/2019 at 03:22PM

37
#392 - manhquan / @manhquan110

05/08/2019 at 03:58PM

37
#393 - tllilleh / @tllilleh

05/14/2019 at 08:56PM

38
#394 - Thomas Surlykke / @THSurlykke

03/08/2019 at 10:19AM

38
#395 - venkatakrishnan / @venkatk_

04/12/2019 at 05:53AM

39
#396 - 🎈 / @mainshayne233

03/04/2019 at 01:21PM

39
#397 - Ashley Harvey / @ashleyharvey87

03/07/2019 at 08:53PM

39
#398 - Kyle Safran / @kylesafran

03/11/2019 at 04:53PM

39
#399 - Josh Callender / @Saponifi3d

03/14/2019 at 09:03PM

39
#400 - 拉书单 / @NaapN2

03/19/2019 at 10:48AM

39
#401 - Andreas Kollaros / @akdeveloper

04/06/2019 at 09:13PM

39
#402 - Tony Buranzon / @therealTbunz

04/24/2019 at 06:27PM

39
#403 - Justus Thane / @justusthane

05/09/2019 at 04:21PM

39
#404 - Andreas Norrstig / @ANorrstig

05/16/2019 at 07:58PM

40
#405 - Paul Slife / @pslife98

03/07/2019 at 01:26AM

40
#406 - exqt / @_exqt_

03/11/2019 at 10:14AM

40
#407 - Brandon Adams / @emidln

03/20/2019 at 04:08PM

40
#408 - zkunsang / @zkunsang

04/14/2019 at 10:05AM

40
#409 - john ford / @johnfor65634499

04/17/2019 at 09:41PM

41
#410 - Akshay Aurora / @akshayaurora

04/13/2019 at 09:51PM

41
#411 - Brady Barten / @bvfbarten

05/08/2019 at 04:15PM

42
#412 - gsvba / @gsvba

03/05/2019 at 01:25PM

43
#413 - /dev/urandom / @_dev_urandom_

04/05/2019 at 09:02AM

43
#414 - Stephen Utley / @Utley2600

05/03/2019 at 07:16AM

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

04/25/2019 at 09:00PM

46
#416 - 김효섭 / @hyosub19

03/05/2019 at 07:38AM

46
#417 - John / @John40423001

04/06/2019 at 11:20AM

47
#418 - Mitchell Hanberg / @mitchhanberg

03/19/2019 at 04:24PM

47
#419 - _ / @bastla

05/02/2019 at 12:11PM

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

05/08/2019 at 11:52AM