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

1881 active golfers, 7916 entries

Leaderboard (lowest score wins):
24
#961 - Peter Demin / @peterdemin

10/13/2020 at 10:31PM

24
#962 - Carlos / @Karu75414928

10/15/2020 at 06:56PM

24
#963 - hhh / @hhh78116797

10/17/2020 at 03:57PM

24
#964 - Nathan Hartman / @hnathan918

10/20/2020 at 11:19PM

24
#965 - Thanawat Yodnil / @littleboycoding

10/24/2020 at 05:54PM

24
#966 - Josh Swift / @Swiftyfish14

10/28/2020 at 12:56PM

24
#967 - Demian Martinez / @demianuco

11/01/2020 at 10:57PM

24
#968 - Jakub / @vr0m

11/06/2020 at 10:22AM

24
#969 - MrRubiksSC / @RubiksSc

11/25/2020 at 02:41AM

24
#970 - Nikhil / @nikhilcsb

12/08/2020 at 11:08PM

24
#971 - Willy / @Willy92273889

12/09/2020 at 07:10AM

24
#972 - Jon Powers / @JonKPowers

12/14/2020 at 01:04AM

24
#973 - Luke Abbott / @lukebyear

12/26/2020 at 03:36AM

24
#974 - Aioriya / @AioriyaDonk

01/23/2021 at 08:21PM

24
#975 - Alessandro Cantini / @aecant

09/28/2021 at 04:51PM

24
#976 - vladanscy / @vladanscy

02/09/2023 at 09:25AM

24
#977 - ndaval / @ndaval

01/14/2024 at 03:51PM

24
#978 - philikarus / @philikarus

02/18/2024 at 10:29AM

24
#979 - Guru Senthil / @gurukoushik

06/28/2024 at 06:07PM

24
#980 - Colin Benner / @yzhs

01/11/2025 at 07:56PM

25
#981 - mnx / @mnxx

02/27/2019 at 04:02PM

25
#982 - Cameron Fowler / @camfowler

03/19/2019 at 02:45AM

25
#983 - micchie 🐻 / @micchiebear

03/26/2019 at 11:39AM

25
#984 - Hu Yingcong / @HYingcong

04/02/2019 at 01:26AM

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

04/11/2019 at 02:03PM

25
#986 - Devi McDevFace / @IanMcD6

04/15/2019 at 07:56PM

25
#987 - Cj-bc_sd.sh🌸🐾🐟🔯💙💤@ソーダー / @Cj_bc_sd

04/19/2019 at 03:02PM

25
#988 - Καράτε Μόνο / @karate_mono

05/10/2019 at 08:33AM

25
#989 - JonasS / @jonas42s

05/30/2019 at 09:27AM

25
#990 - Hector Davensburg / @hdavensburg

06/02/2019 at 08:44PM