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):
34
#1561 - FP / @FPjde

04/11/2019 at 09:30PM

34
#1562 - shredded / @shredded

04/13/2019 at 10:43AM

34
#1563 - Ramesh Fit / @faltuFeet

04/16/2019 at 11:58PM

34
#1564 - 沸腾钢 / @tobecloud

04/19/2019 at 08:04AM

34
#1565 - chriskuck / @chriskuck

04/19/2019 at 07:00PM

34
#1566 - lilicoco / @lilicoco20

04/26/2019 at 11:06PM

34
#1567 - Frede Emil / @Frede_Eb

05/05/2019 at 01:06PM

34
#1568 - JvdB01 / @JvdB001

05/07/2019 at 03:53PM

34
#1569 - Enrico Campidoglio / @ecampidoglio

05/13/2019 at 02:58PM

34
#1570 - Rodave / @r0drOGS

05/13/2019 at 09:16PM

34
#1571 - Jess / @Jess74311450

06/10/2019 at 01:15PM

34
#1572 - John Herman Schwit / @JohnHermanSchwi

06/22/2019 at 01:21AM

34
#1573 - fisch@emacs / @WingsORC

07/20/2019 at 03:03PM

34
#1574 - wwilkins / @wwilkins

07/24/2019 at 12:10AM

34
#1575 - Emily Macon / @ET_Macon

08/24/2019 at 11:31PM

34
#1576 - Stefan Käser / @stivi_kivi

09/17/2019 at 11:59AM

34
#1577 - Dantes / @YoManu513_

01/07/2020 at 09:31PM

34
#1578 - Mateusz / @foobar98765

01/16/2020 at 08:06PM

34
#1579 - Larry Adames / @LarryAdames

01/19/2020 at 12:58AM

34
#1580 - Mikael Brassman / @spoike

03/03/2020 at 03:49PM

34
#1581 - Nelio Santos / @nssantos

03/25/2020 at 02:37AM

34
#1582 - subtexter / @subtexter1

04/24/2020 at 07:52AM

34
#1583 - MA Calero / @GaleonCalero

06/08/2020 at 08:51PM

34
#1584 - 买买买买买 / @yzzzaabb

10/21/2020 at 06:46AM

34
#1585 - Samuel Lewi H / @slh_samuel

11/06/2020 at 03:10PM

34
#1586 - Serhiy Prikhodko / @mastersnetru

11/17/2020 at 07:11PM

34
#1587 - Manas / @weirdsmiley_

11/23/2020 at 08:26PM

34
#1588 - Bharath / @Bharath15952517

12/12/2020 at 06:48PM

34
#1589 - mathieu524287 / @mathieu524287

12/20/2020 at 12:02PM

34
#1590 - Raveen Kumar / @RaveenK44287220

12/21/2020 at 10:49AM