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

453 active golfers, 1825 entries

Leaderboard (lowest score wins):
21
#61 - J. Nick Terry / @deft_code

04/12/2019 at 05:35PM

21
#62 - TheSemicolon / @the_semicolon_

04/14/2019 at 04:48AM

21
#63 - ui / @ui61065627

04/18/2019 at 08:34AM

21
#64 - Dominic Z / @thammaaa

04/18/2019 at 09:23AM

21
#65 - Nikos Kwlos / @Kwlos_Calling

04/19/2019 at 10:55AM

21
#66 - Fredrik Bjerkås / @fbjerkas

04/21/2019 at 09:39PM

21
#67 - Roman Vrublevskiy / @R0manza

04/22/2019 at 07:44PM

21
#68 - Youngchan Lee / @edwardycl

04/24/2019 at 03:41AM

21
#69 - Correct Battery Horse / @horse_battery

04/24/2019 at 07:33PM

21
#70 - Sarah Luongo / @SarahLuongo3

04/25/2019 at 02:34AM

21
#71 - 🐄 / @cow_emoji

04/26/2019 at 01:02PM

21
#72 - 김현수 / @flyhigh43

04/28/2019 at 04:40AM

21
#73 - Ítalo Vieira / @italoviieira

04/28/2019 at 07:07AM

21
#74 - ajs / @_ajsantander

04/28/2019 at 10:44PM

21
#75 - Juan R Leon / @JuanRLeon1

04/29/2019 at 05:06AM

21
#76 - Sherab Giovannini / @shaddycls

05/01/2019 at 01:23PM

21
#77 - Guilherme Henrique C / @todolar

05/02/2019 at 06:25AM

21
#78 - eric huang / @EricGodhand4826

05/04/2019 at 03:45PM

21
#79 - Quinn Collins / @Quinn00239061

05/06/2019 at 03:38PM

21
#80 - ARK / @ARK69712394

05/06/2019 at 10:40PM

21
#81 - grzebiel / @grzebiel1

05/08/2019 at 01:21PM

21
#82 - Ricardo / @log2tweet

05/08/2019 at 04:58PM

21
#83 - william cedervall / @Master_smily

05/13/2019 at 01:10PM

21
#84 - cjariebs / @cjariebs1

05/14/2019 at 03:12AM

21
#85 - Daniel Hakimian / @danrafhak

05/14/2019 at 09:41PM

21
#86 - Tosiaki / @Tosiaki1

05/14/2019 at 11:38PM

21
#87 - Elcio Ferreira / @elcio

05/15/2019 at 12:09AM

21
#88 - Vitaly Sinilin / @unterwulf

05/15/2019 at 12:51AM

21
#89 - salmiak / @salmiak7

05/15/2019 at 10:19PM

21
#90 - Foo Bar / @foobar01123

05/16/2019 at 05:22AM