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

1881 active golfers, 7916 entries

Leaderboard (lowest score wins):
21
#181 - platypusDancing / @platypusDancing

09/12/2019 at 05:36PM

21
#182 - Ollin Boer Bohan / @madebyollin

09/15/2019 at 08:30PM

21
#183 - Oskar Fridell / @rax0m

09/16/2019 at 09:23AM

21
#184 - Andrey / @andreyrmg

09/16/2019 at 02:25PM

21
#185 - Douglas Massolari / @dmassolari

09/16/2019 at 03:40PM

21
#186 - Cassandra / @kascein

09/17/2019 at 04:56AM

21
#187 - Gasol Wu / @gasolwu

09/17/2019 at 05:28PM

21
#188 - Viktor Styrud / @ViktorStyrud

09/18/2019 at 11:16AM

21
#189 - vimgolfer / @vimgolfer7

09/20/2019 at 03:50AM

21
#190 - Brandon Harrison / @llAboutB

09/23/2019 at 11:13PM

21
#191 - IronTiger Park / @IrontigerP

09/24/2019 at 12:39AM

21
#192 - Miko / @_m_ik_o_

09/24/2019 at 04:31PM

21
#193 - Chen-Hung Wu / @utah12005

09/27/2019 at 05:18PM

21
#194 - Jake / @thejakenixon

09/29/2019 at 06:35AM

21
#195 - Sebastien Baudray / @sbaudray

09/29/2019 at 04:10PM

21
#196 - Victor Nițu / @vnitzu

10/03/2019 at 02:10PM

21
#197 - Iulian Alexandru / @ialexandru04

10/05/2019 at 08:04AM

21
#198 - dahan / @dahan74265266

10/08/2019 at 01:34AM

21
#199 - Stephen Westhead / @CraziCrow

10/08/2019 at 10:42AM

21
#200 - Phu Ngo 🌐 / @PhuNgo_K

10/11/2019 at 01:23PM

21
#201 - Auctionet dev team / @auctionetdev

10/11/2019 at 01:46PM

21
#202 - kkscr / @kkscr1

10/12/2019 at 07:24PM

21
#203 - Matthias Wolf / @matz__e

10/12/2019 at 09:54PM

21
#204 - LeLycal.tar.gz 💾 / @Lycal3

10/13/2019 at 10:52AM

21
#205 - Mario Olofo / @mario_olofo

10/16/2019 at 04:43AM

21
#206 - Константин / @pillar_vandyke

10/17/2019 at 04:19AM

21
#207 - artgur / @artgur

10/18/2019 at 01:38AM

21
#208 - @soller@fosstodon.org / @jeremy_soller

10/18/2019 at 03:00AM

21
#209 - two failing clusters in a trench coat / @0x12b

10/18/2019 at 10:00PM

21
#210 - yawryck / @yawryck

10/19/2019 at 02:54AM