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

676 active golfers, 2798 entries

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

04/17/2019 at 09:41PM

40
#602 - pockman / @pockman8

06/29/2019 at 02:14PM

41
#603 - Akshay Aurora / @akshayaurora

04/13/2019 at 09:51PM

41
#604 - Brady Barten / @bvfbarten

05/08/2019 at 04:15PM

41
#605 - Nougatine Naja / @NougatineNaja

05/31/2019 at 07:57AM

41
#606 - Arthamys / @arthamys

06/03/2019 at 08:20AM

41
#607 - Gabe Pohl-Zaretsky / @Gabe_PZ

06/26/2019 at 05:05PM

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

07/06/2019 at 05:15PM

42
#609 - gsvba / @gsvba

03/05/2019 at 01:25PM

42
#610 - Mees / @__mees_

05/20/2019 at 01:53PM

42
#611 - 浚宇 / @Junyu_Wang_cn

05/23/2019 at 11:25AM

42
#612 - Samuel Cherukutty C / @cc_samuel

05/28/2019 at 02:27AM

42
#613 - Vim Golfer / @VimGolfer6

07/04/2019 at 02:27PM

43
#614 - /dev/urandom / @_dev_urandom_

04/05/2019 at 09:02AM

43
#615 - Stephen Utley / @Utley2600

05/03/2019 at 07:16AM

43
#616 - David Winterbottom / @codeinthehole

06/01/2019 at 08:17PM

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

04/25/2019 at 09:00PM

45
#618 - Matador Funkmann / @MFunkmann

05/26/2019 at 06:20PM

46
#619 - 김효섭 / @hyosub19

03/05/2019 at 07:38AM

46
#620 - John / @John40423001

04/06/2019 at 11:20AM

46
#621 - Raghav Subramaniam / @raghavsub

07/15/2019 at 11:37PM

47
#622 - Mitchell Hanberg / @mitchhanberg

03/19/2019 at 04:24PM

47
#623 - _ / @bastla

05/02/2019 at 12:11PM

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

05/08/2019 at 11:52AM

47
#625 - Jacob McCrumb / @MccrumbJacob

05/29/2019 at 06:47PM

47
#626 - soundscope / @__soundscope__

06/25/2019 at 12:46PM

48
#627 - Jessica Wang / @jesszwang

04/11/2019 at 10:00PM

50
#628 - Kishou Yusa / @YusaKishou

07/18/2019 at 04:55AM

52
#629 - Matthias Kausl / @sig_segv

04/22/2019 at 02:50PM

52
#630 - Swapnil Vinay Dinkar / @swapnildinkar

04/27/2019 at 07:38PM