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):
27
#391 - Shahin Mohammad Sali / @shaahiinms

03/25/2019 at 08:40PM

27
#392 - Ivan Krukov / @i_krukov

04/04/2019 at 11:14PM

27
#393 - Banner B. Schafer / @BannerBSchafer

04/08/2019 at 03:13AM

27
#394 - Andrei Gasparovici / @agasparovici

04/09/2019 at 06:42AM

27
#395 - wort / @rtiago98

04/10/2019 at 12:14PM

27
#396 - Ben Allan / @hellobenallan

04/10/2019 at 01:01PM

27
#397 - PCS Solutions / @PeteSolutions

04/18/2019 at 11:18AM

27
#398 - Keven / @czzhengkw

04/25/2019 at 01:37PM

27
#399 - Alexánder Caba / @CabaAlexander

05/02/2019 at 05:34PM

27
#400 - vimgolfer24271 / @vimgolfer24271

05/10/2019 at 11:45AM

27
#401 - Timothée Gauthier / @zmf_tim

05/11/2019 at 03:44PM

27
#402 - jibai Gao / @jibaiGao

05/18/2019 at 09:12AM

27
#403 - Nick Anishenko / @NAnishenko

05/22/2019 at 04:36AM

27
#404 - Ida Motzfeldt / @Sophonacs

05/26/2019 at 05:40PM

27
#405 - Erik Lindeborg / @ErikLindeborg

06/07/2019 at 04:10PM

27
#406 - Hugo Tai / @HugoTai100

06/11/2019 at 05:17AM

27
#407 - jackjsk / @jackjsk1

06/20/2019 at 04:12AM

27
#408 - Takayuki Sato / @yukitaka1974

06/20/2019 at 05:46PM

27
#409 - Corey Alexander / @coreyja_dev

06/27/2019 at 02:51AM

27
#410 - lofoneax / @lofoneax

06/30/2019 at 11:58AM

28
#411 - Benny / @b1299709

02/25/2019 at 10:10PM

28
#412 - tenteke / @kuskus3

02/28/2019 at 03:10PM

28
#413 - Chris AtLee / @chrisatlee

03/01/2019 at 05:58PM

28
#414 - Sébastien Lavoie / @sgdlavoie

03/03/2019 at 04:44AM

28
#415 - Noel Danz / @programoncoffee

03/04/2019 at 08:23PM

28
#416 - wanghbxxxx / @wanghbxxxx

03/27/2019 at 05:43AM

28
#417 - Paul Inc / @hiniol1982

03/30/2019 at 07:30PM

28
#418 - Tyler k the science guy / @tyler_karpe

04/02/2019 at 07:12AM

28
#419 - Nostradevran / @nostradevran

04/12/2019 at 02:08AM

28
#420 - Yegor Myshlyaev / @YegorMy

04/15/2019 at 09:49AM