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

1836 active golfers, 7682 entries

Leaderboard (lowest score wins):
24
#931 - Sébastien Roccaserra / @sroccaserra

09/24/2020 at 07:40PM

24
#932 - Алексей Ковалев / @FrostMephi

09/24/2020 at 08:58PM

24
#933 - Fransis / @fransisnk

09/25/2020 at 06:42PM

24
#934 - SteamHooks / @SteamHooks

09/28/2020 at 09:54PM

24
#935 - BryanYan / @BryanGoesPlaces

09/29/2020 at 03:31PM

24
#936 - teu cu / @j4derr

10/02/2020 at 06:04PM

24
#937 - Gleb Zaharov / @maerfix

10/11/2020 at 06:48PM

24
#938 - Mark / @markbaraban

10/13/2020 at 08:53PM

24
#939 - Peter Demin / @peterdemin

10/13/2020 at 10:31PM

24
#940 - Carlos / @Karu75414928

10/15/2020 at 06:56PM

24
#941 - hhh / @hhh78116797

10/17/2020 at 03:57PM

24
#942 - Nathan Hartman / @hnathan918

10/20/2020 at 11:19PM

24
#943 - Thanawat Yodnil / @littleboycoding

10/24/2020 at 05:54PM

24
#944 - Josh Swift / @Swiftyfish14

10/28/2020 at 12:56PM

24
#945 - Demian Martinez / @demianuco

11/01/2020 at 10:57PM

24
#946 - Jakub / @vr0m

11/06/2020 at 10:22AM

24
#947 - MrRubiksSC / @RubiksSc

11/25/2020 at 02:41AM

24
#948 - Nikhil / @nikhilcsb

12/08/2020 at 11:08PM

24
#949 - Willy / @Willy92273889

12/09/2020 at 07:10AM

24
#950 - Jon Powers / @JonKPowers

12/14/2020 at 01:04AM

24
#951 - Luke Abbott / @lukebyear

12/26/2020 at 03:36AM

24
#952 - Aioriya / @AioriyaDonk

01/23/2021 at 08:21PM

24
#953 - Alessandro Cantini / @aecant

09/28/2021 at 04:51PM

25
#954 - mnx / @mnxx

02/27/2019 at 04:02PM

25
#955 - Cameron Fowler / @camfowler

03/19/2019 at 02:45AM

25
#956 - micchie 🐻 / @micchiebear

03/26/2019 at 11:39AM

25
#957 - Hu Yingcong / @HYingcong

04/02/2019 at 01:26AM

25
#958 - Timothé Tizio-Menut / @TimTizio

04/11/2019 at 02:03PM

25
#959 - Devi McDevFace / @IanMcD6

04/15/2019 at 07:56PM

25
#960 - Cj-bc_sd.sh🐟@mltermコンパイルチャレンジ / @Cj_bc_sd

04/19/2019 at 03:02PM