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):
28
#1261 - " / @bluugs

09/25/2020 at 07:24PM

28
#1262 - Ivan Kwong / @IvanKwong5

09/26/2020 at 10:24AM

28
#1263 - William Burns / @_william_burns

09/29/2020 at 01:00AM

28
#1264 - le random name / @le_random_name

10/11/2020 at 11:34AM

28
#1265 - vimgolferfield / @vimgolferfield

10/21/2020 at 03:01PM

28
#1266 - Akkarin / @akkarinka

11/07/2020 at 06:44AM

28
#1267 - Matt Kula / @matt_kula

11/18/2020 at 10:37PM

28
#1268 - CAMARASA Robin / @CamarasaRobin

11/22/2020 at 06:12PM

28
#1269 - Yotsuba / @Yotsuba06764225

12/22/2020 at 04:49AM

28
#1270 - Kapildev Neupane / @KapildevNeupane

01/01/2021 at 11:02AM

28
#1271 - Thomas L├╝decke / @t0mM3k

01/21/2021 at 07:25AM

28
#1272 - Ronen Lahat / @Ronenl

01/21/2021 at 06:25PM

28
#1273 - usermod / @g_usermod

02/16/2021 at 07:49AM

28
#1274 - pikjes / @pikjes2

07/15/2021 at 03:50PM

29
#1275 - algebraic-geometric / @algebraicgeome1

02/25/2019 at 08:08PM

29
#1276 - Miki Tebeka / @tebeka

02/26/2019 at 04:50AM

29
#1277 - Timothy Bryan / @tim_bryan

02/27/2019 at 10:27AM

29
#1278 - throwaway / @throwaw77650361

03/05/2019 at 07:22PM

29
#1279 - sisi100 / @s1si100

03/06/2019 at 08:30AM

29
#1280 - Eric Harm / @eric_harm

03/07/2019 at 06:58PM

29
#1281 - coffee-addict / @ccoffee_addictt

03/21/2019 at 09:38PM

29
#1282 - StrangeNumbers / @NumbersStrange

03/28/2019 at 11:29AM

29
#1283 - z3NIYXabiuI5rE62tjWYAcytyqJ8hIB7i0TA4LF0ELwTvVUmaq / @Z3I5r

04/06/2019 at 03:59AM

29
#1284 - koziejka_com / @koziejka_com

04/11/2019 at 10:30AM

29
#1285 - berp / @blerpaderp

04/19/2019 at 07:51PM

29
#1286 - rvnjsphdmn / @rvnjsphdmn

04/30/2019 at 03:41AM

29
#1287 - Fiffy / @sr21486642

05/06/2019 at 02:22PM

29
#1288 - chihiro / @chihiro0940

05/09/2019 at 01:27PM

29
#1289 - Sam Gentle / @Zanzibar_1sland

05/22/2019 at 04:10AM

29
#1290 - Gar Morley / @garmorley

05/24/2019 at 03:57PM