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

1221 active golfers, 5122 entries

Leaderboard (lowest score wins):
28
#811 - Nguyen Van Bac / @taybacvt

01/18/2020 at 04:03AM

28
#812 - Enrique Gómez Cruz / @couscouscricket

01/31/2020 at 07:01AM

28
#813 - Michał / @MichalPiotrK

02/03/2020 at 08:12AM

29
#814 - algebraic-geometric / @algebraicgeome1

02/25/2019 at 08:08PM

29
#815 - Miki Tebeka / @tebeka

02/26/2019 at 04:50AM

29
#816 - Timothy Bryan / @tim_bryan

02/27/2019 at 10:27AM

29
#817 - throwaway / @throwaw77650361

03/05/2019 at 07:22PM

29
#818 - sisi100 / @s1si100

03/06/2019 at 08:30AM

29
#819 - Eric Harm / @eric_harm

03/07/2019 at 06:58PM

29
#820 - ccoffee_addictt / @ccoffee_addictt

03/21/2019 at 09:38PM

29
#821 - StrangeNumbers / @NumbersStrange

03/28/2019 at 11:29AM

29
#822 - z3NIYXabiuI5rE62tjWYAcytyqJ8hIB7i0TA4LF0ELwTvVUmaq / @Z3I5r

04/06/2019 at 03:59AM

29
#823 - koziejka_com / @koziejka_com

04/11/2019 at 10:30AM

29
#824 - berp / @blerpaderp

04/19/2019 at 07:51PM

29
#825 - rvnjsphdmn / @rvnjsphdmn

04/30/2019 at 03:41AM

29
#826 - Fiffy / @sr21486642

05/06/2019 at 02:22PM

29
#827 - chihiro / @chihiro0940

05/09/2019 at 01:27PM

29
#828 - Sam Gentle / @Zanzibar_1sland

05/22/2019 at 04:10AM

29
#829 - Gar Morley / @garmorley

05/24/2019 at 03:57PM

29
#830 - Murmus / @MurmusCTF

06/03/2019 at 02:31PM

29
#831 - deHman89 / @danho89

06/04/2019 at 01:56PM

29
#832 - Philip / @vCoRezZ

06/06/2019 at 11:19AM

29
#833 - Zevurari / @zevurari

06/06/2019 at 08:41PM

29
#834 - Sai Praneeth Reddy / @rm_rfasterisk

06/25/2019 at 05:21AM

29
#835 - cinder 🔥 / @cyndrdev

06/27/2019 at 04:33PM

29
#836 - Floyd Gantt / @fgantt

06/27/2019 at 06:13PM

29
#837 - kasper / @kasper72454971

06/30/2019 at 05:45PM

29
#838 - Giulio Bottari / @giuliobottari

07/05/2019 at 03:23AM

29
#839 - Diego Balseiro / @diegobalseiro

07/10/2019 at 02:55AM

29
#840 - mirsemen / @mirsemen1

07/14/2019 at 03:51PM