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

1869 active golfers, 7845 entries

Leaderboard (lowest score wins):
60
#1801 - Hamish Morgan / @ham430

05/18/2020 at 01:23PM

61
#1802 - Aeden Jameson / @daliful

03/12/2019 at 05:48PM

61
#1803 - dicekest / @dicekest

09/14/2019 at 02:45PM

61
#1804 - Scott Powell / @ScottPowellM

09/19/2019 at 11:21PM

62
#1805 - ahahsod / @ahahsod

10/07/2019 at 09:02AM

63
#1806 - Maximilian Kurthen / @MaxKurthen

11/25/2019 at 08:37AM

63
#1807 - Omar Chajia / @omarchajia

03/13/2020 at 07:18PM

64
#1808 - Martin Kirilov / @realMart9n

05/27/2019 at 03:52PM

64
#1809 - Aaron / @_Lordofthevoid_

11/18/2019 at 06:02PM

65
#1810 - Emil Braserud / @Erdustiggen

03/16/2019 at 01:33AM

65
#1811 - damien / @GreatTestyTest

11/10/2019 at 07:08PM

65
#1812 - npokora / @npokora1

01/31/2020 at 10:15AM

65
#1813 - Kiran Kumar Manku / @kirankumarmanku

03/27/2020 at 11:43PM

65
#1814 - Ксения / @Xvluk

06/01/2020 at 10:10AM

66
#1815 - Adam Bain / @adam_bain

05/24/2019 at 08:00PM

67
#1816 - Ken Yap / @chunrukkploy

03/04/2019 at 02:03PM

67
#1817 - Marko Z / @MarkoZ24828260

03/13/2019 at 03:15PM

67
#1818 - Eric Kohn / @EKohn10

03/14/2019 at 02:38PM

67
#1819 - Sunny Rahul / @serenum25

02/11/2020 at 06:39PM

68
#1820 - . / @lacksommelier

10/16/2020 at 09:22AM

70
#1821 - Jeremiah Smith / @jeremiah4smith

04/09/2019 at 08:18AM

70
#1822 - Alex / @heliophobicdude

04/21/2020 at 04:58AM

73
#1823 - Henry Siau / @SiauHenry

05/16/2019 at 07:11AM

74
#1824 - Aaron / @aaronlichtman

08/12/2019 at 12:20PM

74
#1825 - Alucardkoten / @alucardkoten

09/19/2019 at 04:42AM

74
#1826 - 지형 유 / @O_hr_good7

04/05/2022 at 07:28PM

75
#1827 - Hunter Booth / @Hbooth17

05/08/2019 at 08:08PM

76
#1828 - Charles Shirer / @bsdbandit

03/14/2019 at 01:28PM

76
#1829 - Noah Gordon / @1noahgordon

05/30/2019 at 10:06PM

76
#1830 - masatoyoshioka / @Yoshioka0627

09/27/2019 at 12:00PM