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

673 active golfers, 2783 entries

Leaderboard (lowest score wins):
24
#331 - たぬぽん / @eJYwMbymauWKF4B

06/10/2019 at 09:54PM

24
#332 - zealotrush / @zealotrush

06/14/2019 at 05:47AM

24
#333 - albalitz / @_albalitz

06/20/2019 at 04:13PM

24
#334 - Sjoerd Thijsse / @SjoerdThijsse

06/25/2019 at 06:02PM

24
#335 - Thomas / @TBonnin

07/01/2019 at 08:27AM

24
#336 - せいほう / @FICSQF

07/03/2019 at 03:27AM

24
#337 - Riley Shea / @RShea001

07/07/2019 at 05:39AM

24
#338 - Lingyu Yi / @LgxLingyu

07/08/2019 at 03:38AM

24
#339 - Sean Sullivan / @_seanyneutron

07/11/2019 at 06:08PM

24
#340 - Mat / @matpbo

07/12/2019 at 02:43AM

25
#341 - mnx / @mnxx

02/27/2019 at 04:02PM

25
#342 - Cameron Fowler / @camfowler

03/19/2019 at 02:45AM

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

03/26/2019 at 11:39AM

25
#344 - Hu Yingcong / @HYingcong

04/02/2019 at 01:26AM

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

04/11/2019 at 02:03PM

25
#346 - Devi McDevFace / @IanMcD6

04/15/2019 at 07:56PM

25
#347 - Cj-bc_sd.sh🐟@mltermコンパイルチャレンジ / @Cj_bc_sd

04/19/2019 at 03:02PM

25
#348 - Καράτε Μόνο / @karate_mono

05/10/2019 at 08:33AM

25
#349 - JonasS / @jonas42s

05/30/2019 at 09:27AM

25
#350 - Hector Davensburg / @hdavensburg

06/02/2019 at 08:44PM

25
#351 - Williams Estrada / @WILLRZ96

06/02/2019 at 11:16PM

25
#352 - Laurent Atlan / @laurentatlan1

06/24/2019 at 04:30PM

25
#353 - Reuben Reyes / @rreubenreyes

07/01/2019 at 05:09AM

25
#354 - Trevor Langston / @sunkenroad

07/03/2019 at 01:23AM

25
#355 - Crystal L / @Cartsly

07/13/2019 at 08:38PM

26
#356 - Jacob Degeling / @JacobDegeling

02/27/2019 at 09:07AM

26
#357 - Carsano / @DamienFbn

02/28/2019 at 01:05PM

26
#358 - Øystein Walle / @oysteinwalle

02/28/2019 at 01:28PM

26
#359 - Halle Knast / @halleknast

03/11/2019 at 05:10PM

26
#360 - Tim Varley / @varleti

03/11/2019 at 10:45PM