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

1874 active golfers, 7902 entries

Leaderboard (lowest score wins):
110
#1861 - Jeremy Jess / @jeremyjess19

07/11/2019 at 04:57PM

111
#1862 - cnekmp / @cnekmp

03/26/2019 at 01:34AM

112
#1863 - Neil Mathew / @metalwihen

08/06/2020 at 11:49PM

113
#1864 - alixwang / @wangjunal

11/14/2019 at 09:38AM

117
#1865 - Neu- / @Neu9Neu

05/24/2019 at 12:23PM

117
#1866 - Leo sunil / @tomyail

12/07/2020 at 05:50AM

121
#1867 - Joe Xu / @CynicalDreamer2

07/01/2020 at 12:44PM

128
#1868 - Alex Loftus / @Noak3

03/22/2019 at 01:05PM

130
#1869 - EliTheCoder / @elithecoder

04/30/2019 at 03:36PM

135
#1870 - Jason Birchall / @jsonBirchall

08/30/2019 at 08:41PM

150
#1871 - Ghost / @flo1317

11/04/2019 at 01:29PM

162
#1872 - 임덕윤 / @SnLHUF5ZYJXqI1m

07/28/2019 at 06:45PM

174
#1873 - steve bolo / @steve_bolo

10/11/2019 at 08:34PM

198
#1874 - Daniel Snitkovskiy / @DSnitkovskiy

04/07/2019 at 06:27AM