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

1511 active golfers, 6369 entries

Leaderboard (lowest score wins):
21
#331 - Dirty Harry / @TateDirty

05/25/2020 at 05:42PM

21
#332 - chocolate / @chocola81394123

05/27/2020 at 09:45PM

21
#333 - Alek Mugnozzo / @mugnozzo

05/30/2020 at 09:27PM

21
#334 - speisz / @speiszc

05/31/2020 at 11:11PM

21
#335 - 六弦 / @liuxian1990

06/06/2020 at 04:57AM

21
#336 - Gabriel Siqueira / @gabrielhsiq

06/06/2020 at 12:54PM

21
#337 - Simon Wydooghe / @simonwydooghe

06/10/2020 at 06:01PM

21
#338 - Hogo / @HogoBlog

06/11/2020 at 07:03PM

21
#339 - Jake / @Jake88567157

06/12/2020 at 01:15PM

21
#340 - dirkrob / @dirkrob1

06/19/2020 at 01:11AM

21
#341 - lqkem3 / @lqkem31

06/19/2020 at 10:01AM

21
#342 - vimgolfo / @vimgolfo

06/19/2020 at 08:30PM

21
#343 - samet ぷ / @jssamet

06/20/2020 at 11:14AM

21
#344 - eliasrg / @eliasrg16

06/24/2020 at 01:22AM

21
#345 - MrRubiksSC / @ScRubiks

06/25/2020 at 11:24PM

21
#346 - mocihan / @mocihan

06/26/2020 at 02:22PM

21
#347 - 薛乾明 / @xueqianming200

06/28/2020 at 04:11PM

21
#348 - The Oalrus / @mizay7

06/30/2020 at 08:16PM

21
#349 - Ron-Shan,Chang / @highlupin

07/03/2020 at 06:04AM

21
#350 - Jack Garrard / @speyejack

07/05/2020 at 01:28AM

21
#351 - HiJova / @Jova28190268

07/05/2020 at 02:17AM

21
#352 - artcha / @artushkevichs

07/08/2020 at 09:06AM

21
#353 - Ángel Durán / @AngeeelD

07/08/2020 at 04:01PM

21
#354 - PK / @pkeugine

07/10/2020 at 08:26AM

22
#355 - Tinko Minko / @tandikula

02/26/2019 at 06:21AM

22
#356 - hn9u / @hn9u

02/27/2019 at 09:27AM

22
#357 - Valacar / @valacar

03/04/2019 at 01:55AM

22
#358 - maq / @maq41476369

03/04/2019 at 02:50PM

22
#359 - Matthew Barry / @komputerwiz

03/04/2019 at 03:15PM

22
#360 - Mihai Crăiță / @mihai_craita

03/04/2019 at 10:41PM