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

1874 active golfers, 7902 entries

Leaderboard (lowest score wins):
28
#1261 - Felix / @motorente

06/24/2020 at 01:40PM

28
#1262 - lukezifer / @coding_luke

07/03/2020 at 08:38PM

28
#1263 - Siim Põder / @siimphh

07/04/2020 at 09:32AM

28
#1264 - Rocco Calvi / @TecR0c

07/11/2020 at 03:37PM

28
#1265 - William Ott / @oddalot

07/13/2020 at 12:04AM

28
#1266 - Carlos Gracia / @Elrauk

08/21/2020 at 08:22AM

28
#1267 - Colby Morrison / @ColburnMorrison

09/16/2020 at 05:28AM

28
#1268 - " / @bluugs

09/25/2020 at 07:24PM

28
#1269 - Ivan Kwong / @IvanKwong5

09/26/2020 at 10:24AM

28
#1270 - William Burns / @_william_burns

09/29/2020 at 01:00AM

28
#1271 - le random name / @le_random_name

10/11/2020 at 11:34AM

28
#1272 - vimgolferfield / @vimgolferfield

10/21/2020 at 03:01PM

28
#1273 - Akkarin / @akkarinka

11/07/2020 at 06:44AM

28
#1274 - Matt Kula / @matt_kula

11/18/2020 at 10:37PM

28
#1275 - CAMARASA Robin / @CamarasaRobin

11/22/2020 at 06:12PM

28
#1276 - Yotsuba / @Yotsuba06764225

12/22/2020 at 04:49AM

28
#1277 - Kapildev Neupane / @KapildevNeupane

01/01/2021 at 11:02AM

28
#1278 - Thomas Lüdecke / @t0mM3k

01/21/2021 at 07:25AM

28
#1279 - Ronen Lahat / @Ronenl

01/21/2021 at 06:25PM

28
#1280 - usermod / @g_usermod

02/16/2021 at 07:49AM

28
#1281 - pikjes / @pikjes2

07/15/2021 at 03:50PM

29
#1282 - algebraic-geometric / @algebraicgeome1

02/25/2019 at 08:08PM

29
#1283 - Miki Tebeka / @tebeka

02/26/2019 at 04:50AM

29
#1284 - Timothy Bryan / @tim_bryan

02/27/2019 at 10:27AM

29
#1285 - throwaway / @throwaw77650361

03/05/2019 at 07:22PM

29
#1286 - sisi100 / @s1si100

03/06/2019 at 08:30AM

29
#1287 - Eric Harm / @eric_harm

03/07/2019 at 06:58PM

29
#1288 - coffee-addict / @ccoffee_addictt

03/21/2019 at 09:38PM

29
#1289 - StrangeNumbers / @NumbersStrange

03/28/2019 at 11:29AM

29
#1290 - z3NIYXabiuI5rE62tjWYAcytyqJ8hIB7i0TA4LF0ELwTvVUmaq / @Z3I5r

04/06/2019 at 03:59AM