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

1315 active golfers, 5504 entries

Leaderboard (lowest score wins):
30
#961 - Alberto Pose / @thepose

08/17/2019 at 04:15PM

30
#962 - Alexander Dikelsky / @ADikelsky

08/19/2019 at 07:23PM

30
#963 - Raymar Monte / @RaymarMonte

08/25/2019 at 02:19PM

30
#964 - Urbanovics Péter / @UrbanovicsP

08/29/2019 at 08:37AM

30
#965 - Jose Soto / @JoseCanHelp

09/09/2019 at 01:40AM

30
#966 - 小山内まい / @osanamity

10/07/2019 at 04:27PM

30
#967 - deflate 💨 / @boohoobs

11/22/2019 at 02:23AM

30
#968 - Andrei Popescu / @AndreiTheory

12/09/2019 at 11:52AM

30
#969 - Adam Bumpus / @bumpus_adam

12/17/2019 at 09:05PM

30
#970 - DiddyWolf / @DiddyWolf

12/25/2019 at 10:42PM

30
#971 - F. Nord / @rettetdieborg

12/29/2019 at 05:23PM

30
#972 - Matthew Karcher / @mattrfk

01/06/2020 at 05:47AM

30
#973 - Horacio Crotte / @horaciocl

01/19/2020 at 03:53AM

30
#974 - Andre / @5starsmug

01/24/2020 at 12:07PM

30
#975 - InvisibleUnit / @UnitInvisible

02/10/2020 at 04:13PM

30
#976 - Seve / @__Seve__

03/06/2020 at 04:44PM

30
#977 - Shivam Sharma / @getshivam

03/23/2020 at 07:43PM

30
#978 - Ray Guan / @guanxi555

04/07/2020 at 01:35PM

31
#979 - Oskari Virtanen / @osvirtan

02/25/2019 at 06:06PM

31
#980 - Samantha Ramsey / @Samanth12934312

03/01/2019 at 04:53AM

31
#981 - Josh Cohen / @joshhostels

03/03/2019 at 12:13AM

31
#982 - DanSnow / @dododavid006

03/06/2019 at 02:08AM

31
#983 - Unidentified Person / @tripleaperson

03/06/2019 at 07:47AM

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

03/08/2019 at 02:24AM

31
#985 - Deepstack / @deepstackux

03/14/2019 at 04:52PM

31
#986 - The Joe / @computerjoe708

03/17/2019 at 03:54PM

31
#987 - Konstantin Shcherban / @shcherban_en

04/01/2019 at 12:49PM

31
#988 - Daniel Li / @delete12_

04/11/2019 at 12:41AM

31
#989 - Sam Houston / @shouston33

04/14/2019 at 09:48AM

31
#990 - Lewis Guignard / @LewisGuignard

04/15/2019 at 04:19AM