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

1062 active golfers, 4445 entries

Leaderboard (lowest score wins):
41
#961 - Alex Bartol / @alexbartol

09/12/2019 at 11:48PM

42
#962 - gsvba / @gsvba

03/05/2019 at 01:25PM

42
#963 - Mees / @__mees_

05/20/2019 at 01:53PM

42
#964 - 浚宇 / @Junyu_Wang_cn

05/23/2019 at 11:25AM

42
#965 - Samuel Cherukutty C / @cc_samuel

05/28/2019 at 02:27AM

42
#966 - Vim Golfer / @VimGolfer6

07/04/2019 at 02:27PM

42
#967 - Alexey Kuntsevich / @jezzarax

08/27/2019 at 12:06PM

43
#968 - /dev/urandom / @_dev_urandom_

04/05/2019 at 09:02AM

43
#969 - Stephen Utley / @Utley2600

05/03/2019 at 07:16AM

43
#970 - David Winterbottom / @codeinthehole

06/01/2019 at 08:17PM

43
#971 - Richard Liu / @Richard90155430

08/13/2019 at 09:18PM

43
#972 - nebbii / @nebbii_

09/24/2019 at 02:59PM

43
#973 - Keith Klassen / @Collegekid491

11/02/2019 at 08:15PM

44
#974 - codegeist / @code_geist

07/21/2019 at 01:11PM

44
#975 - SR / @SpGeRo

10/01/2019 at 06:45PM

45
#976 - Troels B. Sørensen / @trbjso

04/25/2019 at 09:00PM

45
#977 - Matador Funkmann / @MFunkmann

05/26/2019 at 06:20PM

45
#978 - siledUp / @siledev1

10/02/2019 at 09:37PM

46
#979 - 김효섭 / @hyosub19

03/05/2019 at 07:38AM

46
#980 - John / @John40423001

04/06/2019 at 11:20AM

46
#981 - Raghav Subramaniam / @raghavsub

07/15/2019 at 11:37PM

46
#982 - Tom Charles / @tomcharles__

07/22/2019 at 01:07AM

46
#983 - dahara / @kuma_moooon

08/07/2019 at 01:25PM

47
#984 - Mitchell Hanberg / @mitchhanberg

03/19/2019 at 04:24PM

47
#985 - _ / @bastla

05/02/2019 at 12:11PM

47
#986 - Víctor López / @viticlick

05/08/2019 at 11:52AM

47
#987 - Jacob McCrumb / @MccrumbJacob

05/29/2019 at 06:47PM

47
#988 - soundscope / @__soundscope__

06/25/2019 at 12:46PM

48
#989 - Jessica Wang / @jesszwang

04/11/2019 at 10:00PM

49
#990 - Benjamin Pelletier / @benjipelletier

09/24/2019 at 01:28PM