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

454 active golfers, 1827 entries

Leaderboard (lowest score wins):
29
#301 - algebraic-geometric / @algebraicgeome1

02/25/2019 at 08:08PM

29
#302 - Miki Tebeka / @tebeka

02/26/2019 at 04:50AM

29
#303 - Timothy Bryan / @tim_bryan

02/27/2019 at 10:27AM

29
#304 - throwaway / @throwaw77650361

03/05/2019 at 07:22PM

29
#305 - sisi100 / @s1si100

03/06/2019 at 08:30AM

29
#306 - Eric Harm / @eric_harm

03/07/2019 at 06:58PM

29
#307 - ccoffee_addictt / @ccoffee_addictt

03/21/2019 at 09:38PM

29
#308 - StrangeNumbers / @NumbersStrange

03/28/2019 at 11:29AM

29
#309 - z3NIYXabiuI5rE62tjWYAcytyqJ8hIB7i0TA4LF0ELwTvVUmaq / @Z3I5r

04/06/2019 at 03:59AM

29
#310 - koziejka_com / @koziejka_com

04/11/2019 at 10:30AM

29
#311 - berp / @blerpaderp

04/19/2019 at 07:51PM

29
#312 - rvnjsphdmn / @rvnjsphdmn

04/30/2019 at 03:41AM

29
#313 - Fiffy / @sr21486642

05/06/2019 at 02:22PM

29
#314 - chihiro / @chihiro0940

05/09/2019 at 01:27PM

30
#315 - Andrew Shu / @montooner

03/10/2019 at 02:17AM

30
#316 - 임하정 / @m9XhkZL9XpMgt47

03/10/2019 at 07:27AM

30
#317 - Sarang Khim / @sarang_khim

03/11/2019 at 02:27AM

30
#318 - Alex Mihov / @AlexMihov

03/21/2019 at 10:49AM

30
#319 - Joseph A Shalabi / @JosephShalabi

04/03/2019 at 04:28PM

30
#320 - Slava Kim / @imslavko

04/11/2019 at 09:52PM

30
#321 - EarthToAbigail / @EarthAbigail

04/14/2019 at 03:57PM

30
#322 - tapio / @gncnaxb

04/18/2019 at 12:01PM

30
#323 - Sam Miller / @sam_miller93

04/24/2019 at 01:50PM

30
#324 - Mekhi Thomas / @ReelGreenRanger

04/24/2019 at 02:23PM

30
#325 - Andy / @_andys8

04/27/2019 at 03:50PM

30
#326 - りょ / @ryoo141

05/08/2019 at 01:15PM

30
#327 - bsjd / @bsjd

05/15/2019 at 08:46PM

31
#328 - Oskari Virtanen / @osvirtan

02/25/2019 at 06:06PM

31
#329 - Samantha Ramsey / @Samanth12934312

03/01/2019 at 04:53AM

31
#330 - Josh Cohen / @joshhostels

03/03/2019 at 12:13AM