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

1879 active golfers, 7911 entries

Leaderboard (lowest score wins):
21
#331 - Alek Mugnozzo / @mugnozzo

05/30/2020 at 09:27PM

21
#332 - speisz / @speiszc

05/31/2020 at 11:11PM

21
#333 - 六弦 / @liuxian1990

06/06/2020 at 04:57AM

21
#334 - Gabriel Siqueira / @gabrielhsiq

06/06/2020 at 12:54PM

21
#335 - Simon Wydooghe / @simonwydooghe

06/10/2020 at 06:01PM

21
#336 - Hogo / @HogoBlog

06/11/2020 at 07:03PM

21
#337 - Jake / @Jake88567157

06/12/2020 at 01:15PM

21
#338 - dirkrob / @dirkrob1

06/19/2020 at 01:11AM

21
#339 - lqkem3 / @lqkem31

06/19/2020 at 10:01AM

21
#340 - vimgolfo / @vimgolfo

06/19/2020 at 08:30PM

21
#341 - samet ぷ / @jssamet

06/20/2020 at 11:14AM

21
#342 - eliasrg / @eliasrg16

06/24/2020 at 01:22AM

21
#343 - MrRubiksSC / @ScRubiks

06/25/2020 at 11:24PM

21
#344 - mocihan / @mocihan

06/26/2020 at 02:22PM

21
#345 - 薛乾明 / @xueqianming200

06/28/2020 at 04:11PM

21
#346 - The Oalrus / @mizay7

06/30/2020 at 08:16PM

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

07/03/2020 at 06:04AM

21
#348 - Jack Garrard / @speyejack

07/05/2020 at 01:28AM

21
#349 - HiJova / @Jova28190268

07/05/2020 at 02:17AM

21
#350 - artcha / @artushkevichs

07/08/2020 at 09:06AM

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

07/08/2020 at 04:01PM

21
#352 - PK / @pkeugine

07/10/2020 at 08:26AM

21
#353 - Vital Wang / @wang_vital

07/12/2020 at 05:42PM

21
#354 - JL T / @l0f4r0

07/19/2020 at 06:03PM

21
#355 - kok / @kok89428331

07/25/2020 at 07:03AM

21
#356 - Kim Bäckström / @Norttiiii

07/25/2020 at 08:46AM

21
#357 - Norman Liu / @normanwliu

07/25/2020 at 10:06PM

21
#358 - Kurtis D. Miller / @phdkurt

07/26/2020 at 01:01AM

21
#359 - Gergely Risko / @errge

07/28/2020 at 08:54PM

21
#360 - しょーじ / @shoji_4423

07/31/2020 at 05:02AM