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

1869 active golfers, 7845 entries

Leaderboard (lowest score wins):
24
#961 - hhh / @hhh78116797

10/17/2020 at 03:57PM

24
#962 - Nathan Hartman / @hnathan918

10/20/2020 at 11:19PM

24
#963 - Thanawat Yodnil / @littleboycoding

10/24/2020 at 05:54PM

24
#964 - Josh Swift / @Swiftyfish14

10/28/2020 at 12:56PM

24
#965 - Demian Martinez / @demianuco

11/01/2020 at 10:57PM

24
#966 - Jakub / @vr0m

11/06/2020 at 10:22AM

24
#967 - MrRubiksSC / @RubiksSc

11/25/2020 at 02:41AM

24
#968 - Nikhil / @nikhilcsb

12/08/2020 at 11:08PM

24
#969 - Willy / @Willy92273889

12/09/2020 at 07:10AM

24
#970 - Jon Powers / @JonKPowers

12/14/2020 at 01:04AM

24
#971 - Luke Abbott / @lukebyear

12/26/2020 at 03:36AM

24
#972 - Aioriya / @AioriyaDonk

01/23/2021 at 08:21PM

24
#973 - Alessandro Cantini / @aecant

09/28/2021 at 04:51PM

24
#974 - vladanscy / @vladanscy

02/09/2023 at 09:25AM

24
#975 - ndaval / @ndaval

01/14/2024 at 03:51PM

24
#976 - philikarus / @philikarus

02/18/2024 at 10:29AM

25
#977 - mnx / @mnxx

02/27/2019 at 04:02PM

25
#978 - Cameron Fowler / @camfowler

03/19/2019 at 02:45AM

25
#979 - micchie 🐻 / @micchiebear

03/26/2019 at 11:39AM

25
#980 - Hu Yingcong / @HYingcong

04/02/2019 at 01:26AM

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

04/11/2019 at 02:03PM

25
#982 - Devi McDevFace / @IanMcD6

04/15/2019 at 07:56PM

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

04/19/2019 at 03:02PM

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

05/10/2019 at 08:33AM

25
#985 - JonasS / @jonas42s

05/30/2019 at 09:27AM

25
#986 - Hector Davensburg / @hdavensburg

06/02/2019 at 08:44PM

25
#987 - Williams Estrada / @WILLRZ96

06/02/2019 at 11:16PM

25
#988 - Reuben Reyes / @rreubenreyes

07/01/2019 at 05:09AM

25
#989 - Trevor Langston / @sunkenroad

07/03/2019 at 01:23AM

25
#990 - Crystal L / @Cartsly

07/13/2019 at 08:38PM