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
#1231 - Jesse Widner / @widner_jesse

11/11/2019 at 12:53AM

28
#1232 - Karel Vervaeke / @karel1980

11/14/2019 at 08:13AM

28
#1233 - Harsha Laxman / @harshlax

11/17/2019 at 11:40PM

28
#1234 - Lion de Bell / @CLGBamboo

11/30/2019 at 10:43PM

28
#1235 - adamtobias / @adamtobias

12/05/2019 at 05:53PM

28
#1236 - zqi / @zq11110320

12/26/2019 at 09:09AM

28
#1237 - Florian Kempenich / @ThisIsFlorianK

12/28/2019 at 10:25AM

28
#1238 - 5m0r14x / @5m0r14x

01/10/2020 at 08:17PM

28
#1239 - Kota Mori / @KotaMori1

01/15/2020 at 03:43AM

28
#1240 - Nguyen Van Bac / @taybacvt

01/18/2020 at 04:03AM

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

01/31/2020 at 07:01AM

28
#1242 - Michał / @MichalPiotrK

02/03/2020 at 08:12AM

28
#1243 - Bradley Pankow / @BTPankow

02/21/2020 at 09:35PM

28
#1244 - Valdimar / @genkobar

02/26/2020 at 10:21PM

28
#1245 - Robin / @donpavlas

03/03/2020 at 12:02PM

28
#1246 - MrSunshineBug / @MrSunshineBug

03/21/2020 at 01:44PM

28
#1247 - Nick Buser / @buser_nick

03/24/2020 at 01:33AM

28
#1248 - nick / @Xp_Bar

04/30/2020 at 09:50PM

28
#1249 - yyang / @yyang25803679

05/04/2020 at 12:38PM

28
#1250 - Henry / @hqin2011

05/17/2020 at 08:51AM

28
#1251 - data pata / @datapata3

05/26/2020 at 03:32PM

28
#1252 - Kieran / @Kieran39992130

06/02/2020 at 05:32AM

28
#1253 - Joe / @josephlsanders

06/02/2020 at 07:38PM

28
#1254 - Felix / @motorente

06/24/2020 at 01:40PM

28
#1255 - lukezifer / @coding_luke

07/03/2020 at 08:38PM

28
#1256 - Siim Põder / @siimphh

07/04/2020 at 09:32AM

28
#1257 - Rocco Calvi / @TecR0c

07/11/2020 at 03:37PM

28
#1258 - William Ott / @oddalot

07/13/2020 at 12:04AM

28
#1259 - Carlos Gracia / @Elrauk

08/21/2020 at 08:22AM

28
#1260 - Colby Morrison / @ColburnMorrison

09/16/2020 at 05:28AM