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

686 active golfers, 2834 entries

Leaderboard (lowest score wins):
28
#421 - wanghbxxxx / @wanghbxxxx

03/27/2019 at 05:43AM

28
#422 - Paul Inc / @hiniol1982

03/30/2019 at 07:30PM

28
#423 - Tyler k the science guy / @tyler_karpe

04/02/2019 at 07:12AM

28
#424 - Nostradevran / @nostradevran

04/12/2019 at 02:08AM

28
#425 - Yegor Myshlyaev / @YegorMy

04/15/2019 at 09:49AM

28
#426 - Adam Rajnoha / @krasohled

04/23/2019 at 12:04PM

28
#427 - Apex Predatoe / @EthanMcQuarrie

04/23/2019 at 01:41PM

28
#428 - Graffiti.Lab / @Graffiti2U

04/28/2019 at 02:46PM

28
#429 - yipcyj / @yipcyj

05/02/2019 at 01:19PM

28
#430 - dayshade / @dayshade_7

05/02/2019 at 03:49PM

28
#431 - twisted fate lover / @LoverTwisted

05/08/2019 at 08:18PM

28
#432 - edulim / @edulim2

05/15/2019 at 09:39PM

28
#433 - Denton Phosavanh / @DPhosavanh

05/16/2019 at 01:03PM

28
#434 - El Carpet / @elcarpet

05/30/2019 at 07:00PM

28
#435 - Luis Copetti / @lhcopetti

05/31/2019 at 03:46PM

28
#436 - Ari Sweedler / @Adsweed

06/07/2019 at 12:52AM

28
#437 - Mike Clarke / @clarkema

06/07/2019 at 12:29PM

28
#438 - Prashanth / @Prashanth157T

06/12/2019 at 03:15AM

28
#439 - Grzegorz Andrzejowski / @AndrzejowskiG

06/13/2019 at 01:41PM

28
#440 - Oleg Andriyanov / @OAndriyanov

06/26/2019 at 04:05PM

28
#441 - Marcus Loo / @MarcusLoo1

07/03/2019 at 03:15PM

28
#442 - TestaPerro / @TestaPerro

07/12/2019 at 10:51PM

28
#443 - pf / @pedrofreirex

07/13/2019 at 09:01PM

28
#444 - KoboldTheGreat / @koboldthegreat

07/19/2019 at 09:16AM

28
#445 - FreeTheBSD / @FreeTheBSD

07/20/2019 at 02:45AM

29
#446 - algebraic-geometric / @algebraicgeome1

02/25/2019 at 08:08PM

29
#447 - Miki Tebeka / @tebeka

02/26/2019 at 04:50AM

29
#448 - Timothy Bryan / @tim_bryan

02/27/2019 at 10:27AM

29
#449 - throwaway / @throwaw77650361

03/05/2019 at 07:22PM

29
#450 - sisi100 / @s1si100

03/06/2019 at 08:30AM