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

1007 active golfers, 4195 entries

Leaderboard (lowest score wins):
40
#901 - john ford / @johnfor65634499

04/17/2019 at 09:41PM

40
#902 - pockman / @pockman8

06/29/2019 at 02:14PM

40
#903 - Miguel / @mperezibars

09/02/2019 at 03:03PM

41
#904 - Akshay Aurora / @akshayaurora

04/13/2019 at 09:51PM

41
#905 - Brady Barten / @bvfbarten

05/08/2019 at 04:15PM

41
#906 - Nougatine Naja / @NougatineNaja

05/31/2019 at 07:57AM

41
#907 - Arthamys / @arthamys

06/03/2019 at 08:20AM

41
#908 - Gabe Pohl-Zaretsky / @Gabe_PZ

06/26/2019 at 05:05PM

41
#909 - Березницкий Вадим / @vad1mster

07/06/2019 at 05:15PM

41
#910 - Alex Bartol / @alexbartol

09/12/2019 at 11:48PM

42
#911 - gsvba / @gsvba

03/05/2019 at 01:25PM

42
#912 - Mees / @__mees_

05/20/2019 at 01:53PM

42
#913 - 浚宇 / @Junyu_Wang_cn

05/23/2019 at 11:25AM

42
#914 - Samuel Cherukutty C / @cc_samuel

05/28/2019 at 02:27AM

42
#915 - Vim Golfer / @VimGolfer6

07/04/2019 at 02:27PM

42
#916 - Alexey Kuntsevich / @jezzarax

08/27/2019 at 12:06PM

43
#917 - /dev/urandom / @_dev_urandom_

04/05/2019 at 09:02AM

43
#918 - Stephen Utley / @Utley2600

05/03/2019 at 07:16AM

43
#919 - David Winterbottom / @codeinthehole

06/01/2019 at 08:17PM

43
#920 - Richard Liu / @Richard90155430

08/13/2019 at 09:18PM

43
#921 - nebbii / @nebbii_

09/24/2019 at 02:59PM

43
#922 - Keith Klassen / @Collegekid491

11/02/2019 at 08:15PM

44
#923 - codegeist / @code_geist

07/21/2019 at 01:11PM

44
#924 - SR / @SpGeRo

10/01/2019 at 06:45PM

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

04/25/2019 at 09:00PM

45
#926 - Matador Funkmann / @MFunkmann

05/26/2019 at 06:20PM

45
#927 - siledUp / @siledev1

10/02/2019 at 09:37PM

46
#928 - 김효섭 / @hyosub19

03/05/2019 at 07:38AM

46
#929 - John / @John40423001

04/06/2019 at 11:20AM

46
#930 - Raghav Subramaniam / @raghavsub

07/15/2019 at 11:37PM