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):
33
#1531 - sc / @sc34507146

11/05/2019 at 03:37PM

33
#1532 - Magnus / @praktiskt

11/17/2019 at 03:55PM

33
#1533 - Three Chewz / @lincolnfraley93

11/27/2019 at 01:43AM

33
#1534 - Thomas Churchman / @Beskhue

12/14/2019 at 12:15PM

33
#1535 - tspilk / @tspilk

01/03/2020 at 07:58PM

33
#1536 - ipv4 has run out / @jchook

03/04/2020 at 04:58AM

33
#1537 - Zander / @zanderk

03/08/2020 at 02:01PM

33
#1538 - Harri Taylor / @_harritaylor

04/04/2020 at 09:39PM

33
#1539 - Jason / @roosjason

04/05/2020 at 10:09AM

33
#1540 - RaylanFox / @RaylanFox

04/08/2020 at 07:51AM

33
#1541 - Digvijay Patankar / @dbpatankar

04/18/2020 at 09:06PM

33
#1542 - David Bragmark / @DBragmark

04/28/2020 at 07:31PM

33
#1543 - lzh / @ly_zhng

06/12/2020 at 11:45PM

33
#1544 - khedd / @sinan_khedd

06/13/2020 at 05:31PM

33
#1545 - TSP:Taiwan_Duck_Fart / @DuckTsp

07/05/2020 at 08:23PM

33
#1546 - Terry Vogelsang / @terryvogelsang

08/03/2020 at 04:24PM

33
#1547 - Thiago Becker / @beckert

08/03/2020 at 04:34PM

33
#1548 - Theo Sarrazin / @tshaero

08/17/2020 at 06:02PM

33
#1549 - elroylee / @elroylee11

08/22/2020 at 11:46PM

33
#1550 - Just Alerik / @Just_Alerik

09/18/2020 at 03:33AM

33
#1551 - Lex Romanov / @feax_ru

09/28/2020 at 06:12AM

33
#1552 - Emil Abraham / @emil1414

10/01/2020 at 12:40PM

33
#1553 - Andreas Burg / @der_abu

10/07/2020 at 04:15AM

33
#1554 - Murad / @m_spitfire

12/25/2020 at 04:28PM

33
#1555 - 600MHz / @600MHz1

02/03/2021 at 02:26AM

34
#1556 - Maarten Staa / @SeriousSpoon

02/27/2019 at 01:20PM

34
#1557 - Gabriel / @cimourdain

03/18/2019 at 05:34PM

34
#1558 - Danny / @dannywood1976

03/19/2019 at 06:05PM

34
#1559 - 김형창 / @uVmEMZsCgcYvqZi

03/29/2019 at 01:56AM

34
#1560 - Jan B. / @bracki

04/08/2019 at 12:43PM