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

454 active golfers, 1827 entries

Leaderboard (lowest score wins):
24
#211 - Matteo / @Matteo_Mer

04/04/2019 at 10:49PM

24
#212 - Nicolas Daval / @ndaval

04/07/2019 at 01:27PM

24
#213 - Mike Harris / @MikeMJHarris

04/09/2019 at 02:56PM

24
#214 - Petro Тrouq / @zulolosi

04/12/2019 at 08:10AM

24
#215 - TimMcGuire / @mcguire

04/14/2019 at 02:30PM

24
#216 - Iván Burgos / @Navo_Tivetano

04/17/2019 at 02:45PM

24
#217 - Rand Omperson / @197258444

04/17/2019 at 05:21PM

24
#218 - Tucker Hayden / @TuckNRollio

04/17/2019 at 06:09PM

24
#219 - qisnotnq / @qisnotnq

04/19/2019 at 10:17PM

24
#220 - Roger Bongers / @RogerBongers

04/28/2019 at 02:30PM

24
#221 - William Snyders / @iam2391212

05/02/2019 at 07:04PM

24
#222 - Yann / @yannstad

05/02/2019 at 07:59PM

24
#223 - Owen Campbell / @opcampbell

05/03/2019 at 02:18PM

24
#224 - Koo Zhengqun / @zhengqunkoo

05/04/2019 at 02:51AM

24
#225 - Ondřej Soukup / @goodQuestion_or

05/04/2019 at 09:52AM

24
#226 - Arno / @arnoxmp

05/09/2019 at 09:19AM

24
#227 - James Lowenthal / @JamesAnthonyLow

05/09/2019 at 01:39PM

24
#228 - Felipe Monteiro / @monteiro_fp

05/09/2019 at 02:44PM

24
#229 - dehodson / @dehodson

05/10/2019 at 05:20PM

24
#230 - zoozers / @zoozers

05/12/2019 at 05:17AM

24
#231 - Amila Pasan / @amilapsn

05/12/2019 at 04:34PM

24
#232 - Nico W. / @AirlessAtmo

05/12/2019 at 07:20PM

24
#233 - TheMagzuz / @DamMarkus

05/16/2019 at 05:47PM

24
#234 - Caleb Rollins / @CalebRollins1

05/16/2019 at 07:49PM

25
#235 - mnx / @mnxx

02/27/2019 at 04:02PM

25
#236 - Cameron Fowler / @camfowler

03/19/2019 at 02:45AM

25
#237 - micchie ʕ•ᴥ•ʔ / @micchiebear

03/26/2019 at 11:39AM

25
#238 - Hu Yingcong / @HYingcong

04/02/2019 at 01:26AM

25
#239 - Timothé Tizio-Menut / @TimTizio

04/11/2019 at 02:03PM

25
#240 - Devi McDevFace / @IanMcD6

04/15/2019 at 07:56PM