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

1864 active golfers, 7827 entries

Leaderboard (lowest score wins):
39
#1681 - Kyle Safran / @kylesafran

03/11/2019 at 04:53PM

39
#1682 - Josh Callender / @Saponifi3d

03/14/2019 at 09:03PM

39
#1683 - 拉书单 / @NaapN2

03/19/2019 at 10:48AM

39
#1684 - Andreas Kollaros / @akdeveloper

04/06/2019 at 09:13PM

39
#1685 - Tony Buranzon / @therealTbunz

04/24/2019 at 06:27PM

39
#1686 - Justus Thane / @justusthane

05/09/2019 at 04:21PM

39
#1687 - Andreas Norrstig / @ANorrstig

05/16/2019 at 07:58PM

39
#1688 - wsg / @wsg31986835

07/04/2019 at 02:31PM

39
#1689 - louis / @LouisJordan

08/23/2019 at 10:25AM

39
#1690 - Albert / @Write_Code

10/03/2019 at 06:02AM

39
#1691 - Hervé MARTIN / @HervMARTIN

12/12/2019 at 03:05PM

40
#1692 - Paul Slife / @pslife98

03/07/2019 at 01:26AM

40
#1693 - exqt / @_exqt_

03/11/2019 at 10:14AM

40
#1694 - Brandon Adams / @emidln

03/20/2019 at 04:08PM

40
#1695 - zkunsang / @zkunsang

04/14/2019 at 10:05AM

40
#1696 - john ford / @johnfor65634499

04/17/2019 at 09:41PM

40
#1697 - pockman / @pockman8

06/29/2019 at 02:14PM

40
#1698 - Miguel / @mperezibars

09/02/2019 at 03:03PM

40
#1699 - Bida Wa / @bida_wa

11/27/2019 at 04:47PM

40
#1700 - Robert / @pepzit

11/28/2019 at 05:51PM

40
#1701 - youaresourcecode / @youaresourceco1

12/10/2019 at 02:33PM

40
#1702 - dvorak4tzx / @dvorak4tzx4

12/28/2020 at 05:00PM

40
#1703 - Aldo Perez / @aldorperez1

01/27/2021 at 11:59PM

40
#1704 - Martin LOUAZEL / @Zbrahark

02/17/2021 at 10:31AM

41
#1705 - Akshay Aurora / @akshayaurora

04/13/2019 at 09:51PM

41
#1706 - Brady Barten / @bvfbarten

05/08/2019 at 04:15PM

41
#1707 - Nougatine Naja / @NougatineNaja

05/31/2019 at 07:57AM

41
#1708 - Arthamys / @arthamys

06/03/2019 at 08:20AM

41
#1709 - Gabe Pohl-Zaretsky / @Gabe_PZ

06/26/2019 at 05:05PM

41
#1710 - Березницкий Вадим / @vad1mster

07/06/2019 at 05:15PM