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

1229 active golfers, 5149 entries

Leaderboard (lowest score wins):
21
#241 - Jonathan Jeffrey / @projjects

12/05/2019 at 04:13AM

21
#242 - Pierre Balayé / @PierreBalaye

12/06/2019 at 05:32PM

21
#243 - Sergi Castro / @sergicastro2001

12/08/2019 at 04:13PM

21
#244 - Chris Dean / @ChrisDe62379742

12/14/2019 at 06:54AM

21
#245 - Daniel Kukuła / @dkuku

12/15/2019 at 04:56PM

21
#246 - Vasily / @wolvschool

12/15/2019 at 08:01PM

21
#247 - Duggan / @CallMeDuggan

12/16/2019 at 04:42AM

21
#248 - Delon / @delonleonard

12/22/2019 at 12:08AM

21
#249 - sapir malka / @sapir5522

12/22/2019 at 02:57PM

21
#250 - hsxyl / @hsxyl2

12/23/2019 at 02:15PM

21
#251 - JimmyGymglish / @JGymglish

12/27/2019 at 11:40AM

21
#252 - caffeineism / @caffeineism

01/06/2020 at 12:00AM

21
#253 - Bashar Jaan Khan / @basharjaankhan

01/07/2020 at 01:36PM

21
#254 - Tyler Culdler / @culdler

01/07/2020 at 01:50PM

21
#255 - mowglian / @mowglian

01/08/2020 at 11:13PM

21
#256 - lev / @nouvelliu

01/09/2020 at 01:32AM

21
#257 - Stefan Bjarnason / @stefanttb

01/12/2020 at 12:27AM

21
#258 - Karnival K / @K4rnival

01/14/2020 at 05:18PM

21
#259 - Julien IsCool / @IscoolJulien

01/17/2020 at 03:44PM

21
#260 - John / @Guyer250

01/18/2020 at 12:47AM

21
#261 - li / @li94938987

01/24/2020 at 04:48PM

21
#262 - Quentin Plazar / @QuentinPlazar

01/29/2020 at 08:24PM

21
#263 - おねさわ / @yama846

01/31/2020 at 05:20PM

21
#264 - Bachelor / @bachelorwang

02/03/2020 at 09:15AM

21
#265 - Robber Toe / @robbertoe

02/05/2020 at 11:05PM

21
#266 - Xor547 / @Xor547

02/09/2020 at 04:42PM

21
#267 - j30ng / @leej0116outloo1

02/09/2020 at 05:05PM

21
#268 - yhetsugiHMC / @yhetsugi

02/12/2020 at 01:49AM

21
#269 - jrddp / @jrddp0

02/12/2020 at 05:12PM

21
#270 - Alexander Bessonov / @nonsleepr

02/13/2020 at 04:46PM