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

1307 active golfers, 5485 entries

Leaderboard (lowest score wins):
39
#1171 - Andreas Norrstig / @ANorrstig

05/16/2019 at 07:58PM

39
#1172 - wsg / @wsg31986835

07/04/2019 at 02:31PM

39
#1173 - louis / @LouisJordan

08/23/2019 at 10:25AM

39
#1174 - Albert / @Write_Code

10/03/2019 at 06:02AM

39
#1175 - Hervé MARTIN / @HervMARTIN

12/12/2019 at 03:05PM

40
#1176 - Paul Slife / @pslife98

03/07/2019 at 01:26AM

40
#1177 - exqt / @_exqt_

03/11/2019 at 10:14AM

40
#1178 - Brandon Adams / @emidln

03/20/2019 at 04:08PM

40
#1179 - zkunsang / @zkunsang

04/14/2019 at 10:05AM

40
#1180 - john ford / @johnfor65634499

04/17/2019 at 09:41PM

40
#1181 - pockman / @pockman8

06/29/2019 at 02:14PM

40
#1182 - Miguel / @mperezibars

09/02/2019 at 03:03PM

40
#1183 - Bida Wa / @bida_wa

11/27/2019 at 04:47PM

40
#1184 - Robert / @pepzit

11/28/2019 at 05:51PM

40
#1185 - youaresourcecode / @youaresourceco1

12/10/2019 at 02:33PM

41
#1186 - Akshay Aurora / @akshayaurora

04/13/2019 at 09:51PM

41
#1187 - Brady Barten / @bvfbarten

05/08/2019 at 04:15PM

41
#1188 - Nougatine Naja / @NougatineNaja

05/31/2019 at 07:57AM

41
#1189 - Arthamys / @arthamys

06/03/2019 at 08:20AM

41
#1190 - Gabe Pohl-Zaretsky / @Gabe_PZ

06/26/2019 at 05:05PM

41
#1191 - Березницкий Вадим / @vad1mster

07/06/2019 at 05:15PM

42
#1192 - gsvba / @gsvba

03/05/2019 at 01:25PM

42
#1193 - Mees / @__mees_

05/20/2019 at 01:53PM

42
#1194 - 浚宇 / @Junyu_Wang_cn

05/23/2019 at 11:25AM

42
#1195 - Samuel Cherukutty C / @cc_samuel

05/28/2019 at 02:27AM

42
#1196 - Vim Golfer / @VimGolfer6

07/04/2019 at 02:27PM

42
#1197 - Alexey Kuntsevich / @jezzarax

08/27/2019 at 12:06PM

42
#1198 - camleon / @camleon17

12/07/2019 at 09:04PM

43
#1199 - /dev/urandom / @_dev_urandom_

04/05/2019 at 09:02AM

43
#1200 - Stephen Utley / @Utley2600

05/03/2019 at 07:16AM