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

1867 active golfers, 7830 entries

Leaderboard (lowest score wins):
51
#1771 - Rajasegar Chandran / @rajasegar_c

09/25/2019 at 05:23AM

52
#1772 - Matthias Kausl / @sig_segv

04/22/2019 at 02:50PM

52
#1773 - Swapnil Vinay Dinkar / @swapnildinkar

04/27/2019 at 07:38PM

53
#1774 - chenqiqi / @chenqiqi13

03/12/2019 at 05:17AM

53
#1775 - Lewis Marshall / @LewisAMarshall

06/16/2019 at 06:26PM

53
#1776 - Márcio Santos / @m4rciosantos

08/27/2019 at 12:10AM

53
#1777 - Ioannis Cherouvim / @cherouvim

09/10/2019 at 07:53PM

54
#1778 - MGJoe93 / @mgjoe93

03/02/2019 at 12:50PM

54
#1779 - 新 / @kuropp_

12/19/2019 at 03:13AM

55
#1780 - deedeemeen / @deedeemeen

04/25/2019 at 02:17PM

55
#1781 - samuel norbury / @SnNorbury

11/09/2019 at 12:02PM

55
#1782 - hejhopp87 / @hejhopp87

12/06/2020 at 03:36PM

56
#1783 - Romain BigO / @FunkyBigO

03/20/2019 at 08:09PM

56
#1784 - Rupesh / @Rupesh92076946

03/16/2020 at 09:39PM

56
#1785 - sunny / @pooisonner

05/27/2020 at 07:06AM

57
#1786 - gurjit singh / @sgurjit

04/06/2019 at 05:47AM

57
#1787 - Thilan Tran / @ThilanTran

04/21/2019 at 07:03PM

57
#1788 - Zachary Cetinic / @Swervenstuff

06/26/2019 at 05:29PM

57
#1789 - Dylan Lutz / @DLutz_

11/16/2019 at 06:32PM

58
#1790 - Marco Cárdenas / @mgtcardenas

03/12/2019 at 01:56PM

58
#1791 - gWOLF3 / @GL3NNWOLF3

03/27/2019 at 08:16PM

58
#1792 - おけ / @ok8omk

05/27/2019 at 04:22AM

58
#1793 - ad / @ad44248786

06/28/2019 at 12:44PM

58
#1794 - Jun Isaji / @Jisaji

08/31/2019 at 04:02PM

58
#1795 - Florian Martin / @Florian72650031

04/29/2020 at 01:18AM

59
#1796 - Leander Hendrikx / @leanderhendrikx

11/20/2020 at 08:46AM

60
#1797 - David Afonso / @davafons

07/01/2019 at 11:16PM

60
#1798 - Tacafe div0 / @K_Takafe

01/08/2020 at 09:15AM

60
#1799 - Hamish Morgan / @ham430

05/18/2020 at 01:23PM

61
#1800 - Aeden Jameson / @daliful

03/12/2019 at 05:48PM