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

1836 active golfers, 7682 entries

Leaderboard (lowest score wins):
130
#1831 - EliTheCoder / @elithecoder

04/30/2019 at 03:36PM

135
#1832 - Jason Birchall / @jsonBirchall

08/30/2019 at 08:41PM

150
#1833 - Ghost / @flo1317

11/04/2019 at 01:29PM

162
#1834 - 임덕윤 / @SnLHUF5ZYJXqI1m

07/28/2019 at 06:45PM

174
#1835 - steve bolo / @steve_bolo

10/11/2019 at 08:34PM

198
#1836 - Daniel Snitkovskiy / @DSnitkovskiy

04/07/2019 at 06:27AM