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):
23
#691 - Shanmukh chaitanya / @Shanmukhchaita1

12/16/2019 at 10:39AM

23
#692 - rirze / @SourabhWasTaken

12/24/2019 at 07:37PM

23
#693 - Moye_ / @moye_

12/25/2019 at 05:07PM

23
#694 - Noah Golub / @NoahGolub2

12/27/2019 at 07:19AM

23
#695 - warwickrulez / @warwickrulez

12/30/2019 at 03:48PM

23
#696 - nicosierra / @nicosierra84

01/06/2020 at 12:45AM

23
#697 - Lars Haalck / @larshulk

01/08/2020 at 09:59AM

23
#698 - Gil Shotan / @gilshotan

01/13/2020 at 06:51AM

23
#699 - Flowepmed S. Sirch / @iluvfugu

01/17/2020 at 07:53AM

23
#700 - DosLin / @hidoslin

01/20/2020 at 06:48AM

23
#701 - Łukasz / @_pixsll

01/21/2020 at 10:34AM

23
#702 - Michael Meixner / @meixner62

01/21/2020 at 01:17PM

23
#703 - Thomas Jung / @ThomasAJung

01/24/2020 at 03:20PM

23
#704 - Lukas Klingberg / @ElKlingberg

01/26/2020 at 05:32PM

23
#705 - Braintwister / @Braintwister13

02/02/2020 at 08:49PM

23
#706 - majo senf / @majo_senf

02/06/2020 at 04:04PM

23
#707 - Jonathan Skeate / @jskeate

02/09/2020 at 07:50PM

23
#708 - 骑空士阿为 / @wuwe19

02/12/2020 at 10:18AM

23
#709 - Kyle X. Clark / @KyXr_Clark

02/12/2020 at 06:52PM

23
#710 - みむら / @rnirnu

02/16/2020 at 04:12AM

23
#711 - Jakub / @Jaqbek

02/17/2020 at 11:24AM

23
#712 - Laurent Atlan / @laurentatlan1

03/03/2020 at 08:14PM

23
#713 - Muhammad Affan / @maqur5

03/05/2020 at 02:05PM

23
#714 - Vetle Neumann / @NeumannVetle

03/13/2020 at 02:49PM

23
#715 - asierrayk / @asierrayk

03/14/2020 at 01:15PM

23
#716 - Daniel López / @Dani17H

03/14/2020 at 11:11PM

23
#717 - yar / @yar01921320

03/15/2020 at 02:21PM

23
#718 - Caique Santana / @_caique39

03/20/2020 at 04:06PM

23
#719 - zaid emad / @zaid_emad97

03/25/2020 at 10:40AM

23
#720 - antoine mas / @aneomas

03/25/2020 at 11:08AM