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

1021 active golfers, 4246 entries

Leaderboard (lowest score wins):
21
#211 - s3n a6n / @0x12b

10/18/2019 at 10:00PM

21
#212 - yawryck / @yawryck

10/19/2019 at 02:54AM

21
#213 - Ivan Volosyuk / @IvanVolosyuk

10/19/2019 at 04:40AM

21
#214 - Tamás Kárándi / @tkarandi

10/19/2019 at 09:19AM

21
#215 - harmony_krieg / @harmony_krieg

10/20/2019 at 10:19AM

21
#216 - Xùdōng Yáng / @Wyverald

10/21/2019 at 06:56AM

21
#217 - TimMcGuire / @mcguire

10/25/2019 at 01:30AM

21
#218 - てら@FighTimerで作業記録 / @sorahako0515

10/30/2019 at 04:18PM

21
#219 - BESSENG A IREH Guy / @guybesseng

10/30/2019 at 06:35PM

21
#220 - Serghei Cebotari / @scebotari66

10/31/2019 at 08:45AM

21
#221 - Matt Aschmann / @ma7hatter

11/04/2019 at 06:13PM

21
#222 - Melvin Cheung / @MelvinCheung

11/07/2019 at 01:33PM

21
#223 - Daniel Klepacki / @daniel_klepacki

11/10/2019 at 02:35PM

21
#224 - LinusPoutine / @LinusPoutine

11/12/2019 at 12:37PM

21
#225 - William John Gowers / @_johngowers

11/13/2019 at 10:43AM

21
#226 - Dan Correll / @heavyd1001

11/15/2019 at 01:43AM

21
#227 - Jangsea Park / @jangsea

11/15/2019 at 03:53PM

21
#228 - eshel / @EshelBM

11/16/2019 at 03:05AM

21
#229 - Micael Jarniac / @MicaelJarniac

11/16/2019 at 09:37PM

21
#230 - Alexander Volkovsky / @alan_aers

11/17/2019 at 07:30PM

22
#231 - Tinko Minko / @tandikula

02/26/2019 at 06:21AM

22
#232 - hn9u / @hn9u

02/27/2019 at 09:27AM

22
#233 - Valacar / @valacar

03/04/2019 at 01:55AM

22
#234 - maq / @maq41476369

03/04/2019 at 02:50PM

22
#235 - Matthew Barry / @komputerwiz

03/04/2019 at 03:15PM

22
#236 - Mihai Crăiță / @mihai_craita

03/04/2019 at 10:41PM

22
#237 - No Not / @NoNot44894988

03/10/2019 at 10:06AM

22
#238 - Animeville Horror / @InMyExperience

03/11/2019 at 02:20AM

22
#239 - Vimfiz / @vimfiz

03/22/2019 at 12:45AM

22
#240 - Brad Daniels / @JBradDaniels

03/27/2019 at 03:14AM