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

1021 active golfers, 4246 entries

Leaderboard (lowest score wins):
43
#931 - Richard Liu / @Richard90155430

08/13/2019 at 09:18PM

43
#932 - nebbii / @nebbii_

09/24/2019 at 02:59PM

43
#933 - Keith Klassen / @Collegekid491

11/02/2019 at 08:15PM

44
#934 - codegeist / @code_geist

07/21/2019 at 01:11PM

44
#935 - SR / @SpGeRo

10/01/2019 at 06:45PM

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

04/25/2019 at 09:00PM

45
#937 - Matador Funkmann / @MFunkmann

05/26/2019 at 06:20PM

45
#938 - siledUp / @siledev1

10/02/2019 at 09:37PM

46
#939 - 김효섭 / @hyosub19

03/05/2019 at 07:38AM

46
#940 - John / @John40423001

04/06/2019 at 11:20AM

46
#941 - Raghav Subramaniam / @raghavsub

07/15/2019 at 11:37PM

46
#942 - Tom Charles / @tomcharles__

07/22/2019 at 01:07AM

46
#943 - dahara / @kuma_moooon

08/07/2019 at 01:25PM

47
#944 - Mitchell Hanberg / @mitchhanberg

03/19/2019 at 04:24PM

47
#945 - _ / @bastla

05/02/2019 at 12:11PM

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

05/08/2019 at 11:52AM

47
#947 - Jacob McCrumb / @MccrumbJacob

05/29/2019 at 06:47PM

47
#948 - soundscope / @__soundscope__

06/25/2019 at 12:46PM

48
#949 - Jessica Wang / @jesszwang

04/11/2019 at 10:00PM

49
#950 - Benjamin Pelletier / @benjipelletier

09/24/2019 at 01:28PM

50
#951 - Kishou Yusa / @YusaKishou

07/18/2019 at 04:55AM

50
#952 - Zviad Mgaloblishvili / @ZMgaloblishvili

10/10/2019 at 08:16PM

51
#953 - Rajasegar Chandran / @rajasegar_c

09/25/2019 at 05:23AM

52
#954 - Matthias Kausl / @sig_segv

04/22/2019 at 02:50PM

52
#955 - Swapnil Vinay Dinkar / @swapnildinkar

04/27/2019 at 07:38PM

53
#956 - chenqiqi / @chenqiqi13

03/12/2019 at 05:17AM

53
#957 - Lewis Marshall / @LewisAMarshall

06/16/2019 at 06:26PM

53
#958 - Márcio Santos / @m4rciosantos

08/27/2019 at 12:10AM

53
#959 - Ioannis Cherouvim / @cherouvim

09/10/2019 at 07:53PM

54
#960 - MGJoe93 / @mgjoe93

03/02/2019 at 12:50PM