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

674 active golfers, 2784 entries

Leaderboard (lowest score wins):
54
#631 - MGJoe93 / @mgjoe93

03/02/2019 at 12:50PM

55
#632 - deedeemeen / @deedeemeen

04/25/2019 at 02:17PM

55
#633 - Larry Adames / @LarryAdames

07/02/2019 at 11:17PM

56
#634 - Romain BigO / @FunkyBigO

03/20/2019 at 08:09PM

57
#635 - gurjit singh / @sgurjit

04/06/2019 at 05:47AM

57
#636 - Thilan Tran / @ThilanTran

04/21/2019 at 07:03PM

57
#637 - Zachary Cetinic / @Swervenstuff

06/26/2019 at 05:29PM

58
#638 - Marco Cárdenas / @mgtcardenas

03/12/2019 at 01:56PM

58
#639 - gWOLF3 / @GL3NNWOLF3

03/27/2019 at 08:16PM

58
#640 - おけ / @ok8omk

05/27/2019 at 04:22AM

58
#641 - ad / @ad44248786

06/28/2019 at 12:44PM

60
#642 - David Afonso / @davafons

07/01/2019 at 11:16PM

61
#643 - Aeden Jameson / @daliful

03/12/2019 at 05:48PM

64
#644 - Martin Kirilov / @realMart9n

05/27/2019 at 03:52PM

65
#645 - Emil Braserud / @Erdustiggen

03/16/2019 at 01:33AM

66
#646 - Adam Bain / @adam_bain

05/24/2019 at 08:00PM

67
#647 - Ken Yap / @chunrukkploy

03/04/2019 at 02:03PM

67
#648 - Marko Z / @MarkoZ24828260

03/13/2019 at 03:15PM

67
#649 - Eric Kohn / @EKohn10

03/14/2019 at 02:38PM

70
#650 - Jeremiah Smith / @jeremiah4smith

04/09/2019 at 08:18AM

73
#651 - Henry Siau / @SiauHenry

05/16/2019 at 07:11AM

75
#652 - Hunter Booth / @Hbooth17

05/08/2019 at 08:08PM

76
#653 - Charles Shirer / @bsdbandit

03/14/2019 at 01:28PM

76
#654 - Noah Gordon / @1noahgordon

05/30/2019 at 10:06PM

78
#655 - Christine / @iamwoman_io

05/21/2019 at 11:32PM

82
#656 - Justin Sitarz / @justinsitarz

05/30/2019 at 02:50PM

83
#657 - Justin / @tintinthong

05/13/2019 at 09:06AM

83
#658 - Andy Gnias / @GniTheSciGuy

06/22/2019 at 04:48PM

84
#659 - Jeff Anderson / @_j3ffrey

04/27/2019 at 10:10PM

84
#660 - TadikMaHladik / @TadikH

05/21/2019 at 04:42PM