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

1885 active golfers, 7939 entries

Leaderboard (lowest score wins):
39
#1711 - Magnus Wahlstrand / @magnuswahlstrand

12/26/2024 at 08:38PM

40
#1712 - Paul Slife / @pslife98

03/07/2019 at 01:26AM

40
#1713 - exqt / @_exqt_

03/11/2019 at 10:14AM

40
#1714 - Brandon Adams / @emidln

03/20/2019 at 04:08PM

40
#1715 - zkunsang / @zkunsang

04/14/2019 at 10:05AM

40
#1716 - john ford / @johnfor65634499

04/17/2019 at 09:41PM

40
#1717 - pockman / @pockman8

06/29/2019 at 02:14PM

40
#1718 - Miguel / @mperezibars

09/02/2019 at 03:03PM

40
#1719 - Bida Wa / @bida_wa

11/27/2019 at 04:47PM

40
#1720 - Robert / @pepzit

11/28/2019 at 05:51PM

40
#1721 - youaresourcecode / @youaresourceco1

12/10/2019 at 02:33PM

40
#1722 - dvorak4tzx / @dvorak4tzx4

12/28/2020 at 05:00PM

40
#1723 - Aldo Perez / @aldorperez1

01/27/2021 at 11:59PM

40
#1724 - Martin LOUAZEL / @Zbrahark

02/17/2021 at 10:31AM

41
#1725 - Akshay Aurora / @akshayaurora

04/13/2019 at 09:51PM

41
#1726 - Brady Barten / @bvfbarten

05/08/2019 at 04:15PM

41
#1727 - Nougatine Naja / @NougatineNaja

05/31/2019 at 07:57AM

41
#1728 - Arthamys / @arthamys

06/03/2019 at 08:20AM

41
#1729 - Gabe Pohl-Zaretsky / @Gabe_PZ

06/26/2019 at 05:05PM

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

07/06/2019 at 05:15PM

41
#1731 - mr vim golf / @vim_golf_b812e

05/18/2020 at 01:53PM

41
#1732 - Harry Doran / @harrydorandev

06/02/2020 at 03:20PM

41
#1733 - ZiTeng Pang / @ZitengP

09/13/2020 at 07:05PM

41
#1734 - Ben Wainwright / @benwainwrightuk

09/26/2020 at 12:45PM

42
#1735 - gsvba / @gsvba

03/05/2019 at 01:25PM

42
#1736 - Mees / @__mees_

05/20/2019 at 01:53PM

42
#1737 - 浚宇 / @Junyu_Wang_cn

05/23/2019 at 11:25AM

42
#1738 - Samuel Cherukutty C / @cc_samuel

05/28/2019 at 02:27AM

42
#1739 - Vim Golfer / @VimGolfer6

07/04/2019 at 02:27PM

42
#1740 - Alexey Kuntsevich / @jezzarax

08/27/2019 at 12:06PM