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):
30
#1381 - InvisibleUnit / @UnitInvisible

02/10/2020 at 04:13PM

30
#1382 - Shivam Sharma / @getshivam

03/23/2020 at 07:43PM

30
#1383 - Кунин Александр / @skyksandr

04/16/2020 at 05:07PM

30
#1384 - スペー / @homander2017

04/18/2020 at 12:33AM

30
#1385 - Samir Khan / @stats_samir

05/17/2020 at 10:39PM

30
#1386 - MagazinePosh / @mercadoposh

05/20/2020 at 01:17AM

30
#1387 - dl1991 / @dl19913

05/29/2020 at 06:05PM

30
#1388 - 店長 / @_shop_one

06/18/2020 at 09:57AM

30
#1389 - Rebin Silva / @RebinSilva

07/01/2020 at 01:40PM

30
#1390 - Emil Vatai / @vatai

07/19/2020 at 03:24PM

30
#1391 - Saurav Ray / @sauravpray

07/30/2020 at 10:37AM

30
#1392 - Max Minaev / @max_minaev11

08/04/2020 at 08:12AM

30
#1393 - Benjamin Keener / @TheBenKeener

08/23/2020 at 10:09PM

30
#1394 - Sebastian W. / @Sebasti91439242

09/01/2020 at 06:38PM

30
#1395 - Brendan Schaenzer / @bschaenzer

09/29/2020 at 07:49PM

30
#1396 - Mickaël Menu / @mickaelmenu

10/24/2020 at 09:41PM

30
#1397 - Gabriel Brousset / @GabBrousset

12/19/2020 at 05:14AM

30
#1398 - Nitesh Rijhwani / @NitzRijhwani

01/05/2021 at 02:50PM

30
#1399 - Arthur DELORT / @artDelort

01/13/2021 at 11:00PM

30
#1400 - yxke / @_yxke

01/14/2021 at 09:35AM

30
#1401 - Faizan Ansari / @faizan_157

01/31/2021 at 08:36AM

30
#1402 - Eli / @elics50

05/17/2021 at 06:39PM

31
#1403 - Oskari Virtanen / @osvirtan

02/25/2019 at 06:06PM

31
#1404 - Samantha Ramsey / @Samanth12934312

03/01/2019 at 04:53AM

31
#1405 - Josh / @joshhostels

03/03/2019 at 12:13AM

31
#1406 - DanSnow / @dododavid006

03/06/2019 at 02:08AM

31
#1407 - Unidentified Person / @tripleaperson

03/06/2019 at 07:47AM

31
#1408 - @coon@chaos.social / @coon_42

03/08/2019 at 02:24AM

31
#1409 - Deepstack / @deepstackux

03/14/2019 at 04:52PM

31
#1410 - The Joe / @computerjoe708

03/17/2019 at 03:54PM