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):
48
#421 - Jessica Wang / @jesszwang

04/11/2019 at 10:00PM

52
#422 - Matthias Kausl / @sig_segv

04/22/2019 at 02:50PM

52
#423 - Swapnil Vinay Dinkar / @swapnildinkar

04/27/2019 at 07:38PM

53
#424 - chenqiqi / @chenqiqi13

03/12/2019 at 05:17AM

53
#425 - phoibos92@gmail.com / @phoibos92

04/25/2019 at 04:00AM

54
#426 - MGJoe93 / @mgjoe93

03/02/2019 at 12:50PM

55
#427 - deedeemeen / @deedeemeen

04/25/2019 at 02:17PM

56
#428 - Romain BigO / @FunkyBigO

03/20/2019 at 08:09PM

57
#429 - gurjit singh / @sgurjit

04/06/2019 at 05:47AM

57
#430 - Thilan Tran / @ThilanTran

04/21/2019 at 07:03PM

58
#431 - Marco Cárdenas / @mgtcardenas

03/12/2019 at 01:56PM

58
#432 - gWOLF3 / @GL3NNWOLF3

03/27/2019 at 08:16PM

61
#433 - Aeden Jameson / @daliful

03/12/2019 at 05:48PM

65
#434 - Emil Braserud / @Erdustiggen

03/16/2019 at 01:33AM

67
#435 - Ken Yap / @chunrukkploy

03/04/2019 at 02:03PM

67
#436 - Marko Z / @MarkoZ24828260

03/13/2019 at 03:15PM

67
#437 - Eric Kohn / @EKohn10

03/14/2019 at 02:38PM

70
#438 - Jeremiah Smith / @jeremiah4smith

04/09/2019 at 08:18AM

73
#439 - Henry Siau / @SiauHenry

05/16/2019 at 07:11AM

75
#440 - Hunter Booth / @Hbooth17

05/08/2019 at 08:08PM

76
#441 - Charles Shirer / @bsdbandit

03/14/2019 at 01:28PM

83
#442 - Justin / @tintinthong

05/13/2019 at 09:06AM

84
#443 - Jeff Anderson / @_j3ffrey

04/27/2019 at 10:10PM

85
#444 - freemink / @freemink

03/04/2019 at 07:37AM

85
#445 - Paul Logston / @PaulLogston

03/22/2019 at 01:30AM

87
#446 - Tim W / @TheArchdukeTim

03/05/2019 at 05:04AM

89
#447 - Andy Falcon-Gonzalez / @Andyfg29

05/20/2019 at 03:44AM

95
#448 - Андрей Сальников / @SHshzik

04/22/2019 at 01:48PM

96
#449 - Sina Karimi / @creamycode

05/07/2019 at 12:15PM

99
#450 - limboste / @limboste

05/04/2019 at 08:41AM