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

1562 active golfers, 6584 entries

Leaderboard (lowest score wins):
23
#631 - Caique Santana / @_caique39

03/20/2020 at 04:06PM

23
#632 - zaid emad / @zaid_emad97

03/25/2020 at 10:40AM

23
#633 - antoine mas / @aneomas

03/25/2020 at 11:08AM

23
#634 - Toby de Havilland / @tobydeh

04/19/2020 at 07:36AM

23
#635 - Shalin Scupham / @shalin_scupham

04/21/2020 at 01:48AM

23
#636 - Zachary Lee / @abstractlyZach

04/22/2020 at 04:08AM

23
#637 - まーしぃ🐢💨 / @marcymaplemug

04/22/2020 at 02:19PM

23
#638 - The Legy / @thelegy

04/23/2020 at 01:24PM

23
#639 - Nishanth Reddy / @Nishanth2066

04/26/2020 at 10:36AM

23
#640 - abdellah hariti / @_hariti

04/26/2020 at 06:40PM

23
#641 - sydman / @sydman11

04/30/2020 at 06:21AM

23
#642 - kashikasitaro / @kashikasitaro

05/02/2020 at 06:36AM

23
#643 - Atzz / @AtzzCokeK

05/02/2020 at 06:37AM

23
#644 - cyndiii-development / @cyndiiidevelop1

05/02/2020 at 06:38AM

23
#645 - Neil Earnshaw / @neilearnshaw

05/08/2020 at 12:15PM

23
#646 - Manikkumar / @ManikkumarK

05/10/2020 at 02:33AM

23
#647 - ThrowawayProbably912 / @TProbably912

05/10/2020 at 05:19PM

23
#648 - Pawel Wenda / @pwlwnd

05/12/2020 at 01:48PM

23
#649 - Harish / @itzharish_c

05/12/2020 at 02:36PM

23
#650 - Finlay l͓̽o͓̽c͓̽k͓̽e͓̽d͓̽d͓̽o͓̽w͓̽n͓̽ McAfee / @finsqm

05/25/2020 at 10:02AM

23
#651 - RockerZZY / @rocker_zzy

05/27/2020 at 04:34AM

23
#652 - Satish Maurya / @maurya777

05/30/2020 at 04:36PM

23
#653 - natasha / @CallMeNatchos

06/01/2020 at 12:49AM

23
#654 - Bob / @Bob37174065

06/01/2020 at 01:37PM

23
#655 - smlbrngr / @smlbrngr

06/15/2020 at 04:03PM

23
#656 - Jeff Cui / @jeffacce

06/18/2020 at 07:14AM

23
#657 - Lakshitha Wijesinghe / @lakshithaww

06/18/2020 at 11:58AM

23
#658 - もりを / @morio_prog

06/20/2020 at 03:32AM

23
#659 - example_user_1032452 / @E1032452

06/25/2020 at 10:58PM

23
#660 - Ming Dai / @MingDai2

06/29/2020 at 10:15PM