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

1847 active golfers, 7756 entries

Leaderboard (lowest score wins):
28
#1231 - nick / @Xp_Bar

04/30/2020 at 09:50PM

28
#1232 - yyang / @yyang25803679

05/04/2020 at 12:38PM

28
#1233 - Henry / @hqin2011

05/17/2020 at 08:51AM

28
#1234 - data pata / @datapata3

05/26/2020 at 03:32PM

28
#1235 - Kieran / @Kieran39992130

06/02/2020 at 05:32AM

28
#1236 - Joe / @josephlsanders

06/02/2020 at 07:38PM

28
#1237 - Felix / @motorente

06/24/2020 at 01:40PM

28
#1238 - lukezifer / @coding_luke

07/03/2020 at 08:38PM

28
#1239 - Siim Põder / @siimphh

07/04/2020 at 09:32AM

28
#1240 - Rocco Calvi / @TecR0c

07/11/2020 at 03:37PM

28
#1241 - William Ott / @oddalot

07/13/2020 at 12:04AM

28
#1242 - Carlos Gracia / @Elrauk

08/21/2020 at 08:22AM

28
#1243 - Colby Morrison / @ColburnMorrison

09/16/2020 at 05:28AM

28
#1244 - " / @bluugs

09/25/2020 at 07:24PM

28
#1245 - Ivan Kwong / @IvanKwong5

09/26/2020 at 10:24AM

28
#1246 - William Burns / @_william_burns

09/29/2020 at 01:00AM

28
#1247 - Aldo Doggen / @ALDOGGEN

10/11/2020 at 11:34AM

28
#1248 - vimgolferfield / @vimgolferfield

10/21/2020 at 03:01PM

28
#1249 - Akkarin / @akkarinka

11/07/2020 at 06:44AM

28
#1250 - Matt Kula / @matt_kula

11/18/2020 at 10:37PM

28
#1251 - CAMARASA Robin / @CamarasaRobin

11/22/2020 at 06:12PM

28
#1252 - Yotsuba / @Yotsuba06764225

12/22/2020 at 04:49AM

28
#1253 - Kapildev Neupane / @KapildevNeupane

01/01/2021 at 11:02AM

28
#1254 - Thomas Lüdecke / @t0mM3k

01/21/2021 at 07:25AM

28
#1255 - Ronen Lahat / @Ronenl

01/21/2021 at 06:25PM

28
#1256 - usermod / @g_usermod

02/16/2021 at 07:49AM

28
#1257 - pikjes / @pikjes2

07/15/2021 at 03:50PM

29
#1258 - algebraic-geometric / @algebraicgeome1

02/25/2019 at 08:08PM

29
#1259 - Miki Tebeka / @tebeka

02/26/2019 at 04:50AM

29
#1260 - Timothy Bryan / @tim_bryan

02/27/2019 at 10:27AM