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

1867 active golfers, 7830 entries

Leaderboard (lowest score wins):
23
#781 - Kieron Browne / @KieronBrowne1

10/07/2020 at 04:46PM

23
#782 - ✨ / @startresse

10/07/2020 at 07:51PM

23
#783 - Herman Stavelin / @HsBruker

10/16/2020 at 11:32AM

23
#784 - versa / @versa51547979

10/16/2020 at 08:14PM

23
#785 - Leo Winters / @LeoPWinters

10/19/2020 at 05:24PM

23
#786 - Leland Paul Kusmer / @lelandpaul

10/20/2020 at 02:44PM

23
#787 - Jakub Wagner / @Jakub1019

10/22/2020 at 05:21PM

23
#788 - dadams2 / @dadams217

10/31/2020 at 05:21AM

23
#789 - Zack Freedman / @freedman_zack

11/08/2020 at 06:30PM

23
#790 - Jacques Donnelly / @Donnll

11/09/2020 at 03:12PM

23
#791 - hepebexè / @hepebexe

11/24/2020 at 09:54PM

23
#792 - Noise Official / @zmunk19

11/29/2020 at 10:11AM

23
#793 - nd183 / @nd1832

12/04/2020 at 02:17PM

23
#794 - 영훈 / @odjfnrtm

12/15/2020 at 02:27AM

23
#795 - John Doe / @JohnDoe75830353

12/21/2020 at 07:08PM

23
#796 - dummy acc / @__dummy_acc

12/23/2020 at 07:55AM

23
#797 - Ray Dennis / @raysden

12/23/2020 at 07:22PM

23
#798 - Mach / @back2mach

01/03/2021 at 01:56AM

23
#799 - knobbelkesvlaai / @knobbelkesvlaai

01/13/2021 at 10:45AM

23
#800 - Sergei Blinov / @awnion

01/17/2021 at 05:54AM

23
#801 - Caleb Biddulph / @BiddulphCaleb

01/27/2021 at 02:09AM

23
#802 - Darrin Mourer / @dmourer

01/27/2021 at 09:43PM

23
#803 - 時空裂縫 / @0xdcbf

07/02/2021 at 01:09PM

23
#804 - 7733865@qq.com / @tjxwg

06/06/2023 at 12:53AM

23
#805 - vimmac / @vimmac13823

06/14/2023 at 07:35AM

23
#806 - 咸糖🎯 / @GIA917229015

07/09/2023 at 01:47PM

23
#807 - Hans Wurscht / @HansW313

09/18/2023 at 11:26AM

23
#808 - asirago / @asiragoo

12/11/2023 at 08:38PM

23
#809 - sosa-daniel / @sosa-daniel

12/29/2023 at 08:39AM

23
#810 - Andy / @andyfoster

04/06/2024 at 11:50AM