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

1848 active golfers, 7757 entries

Leaderboard (lowest score wins):
24
#901 - 63RC-LRMn-cXC4-v8NJ / @63rcV

03/14/2020 at 04:50PM

24
#902 - vicver09 / @vicver091

03/19/2020 at 02:19AM

24
#903 - BnnGolfer / @BnnGolfer

03/19/2020 at 11:05PM

24
#904 - bluemartian / @bluemartianz59

03/21/2020 at 05:21PM

24
#905 - Apox / @apox159

03/23/2020 at 10:59PM

24
#906 - Seve / @Seve_py

04/09/2020 at 05:11PM

24
#907 - {{ profile.name }} / @bytesonly

04/28/2020 at 02:00PM

24
#908 - andmpr / @andmpr1

04/28/2020 at 11:28PM

24
#909 - インベスターS / @S42197397

05/02/2020 at 06:48AM

24
#910 - Soumadeep Saha / @SoumadeepSaha8

05/07/2020 at 12:38AM

24
#911 - Quentin Leroy / @qnleroy

05/07/2020 at 02:50PM

24
#912 - Fabian Ahbeck / @FAhbeck

05/08/2020 at 07:52PM

24
#913 - Dionysus / @user101user

05/08/2020 at 11:29PM

24
#914 - Андриянов Роман / @angeldeath29

05/10/2020 at 03:45PM

24
#915 - Salman AlSaigal / @Salman_AlSaigal

05/20/2020 at 12:30AM

24
#916 - Wayne / @lilwayne15561

05/22/2020 at 03:02AM

24
#917 - Eric Banisadr / @ebanisadr

05/29/2020 at 04:14AM

24
#918 - loupiot.veloce / @LoupiotVeloce

06/10/2020 at 01:25PM

24
#919 - nihilistCookie / @NihilistCookie

06/13/2020 at 09:04PM

24
#920 - nico / @res_tantum

06/17/2020 at 05:12PM

24
#921 - Ben Mayoras / @Mayorasaurus

06/19/2020 at 02:39AM

24
#922 - serici / @serici

07/01/2020 at 09:07PM

24
#923 - SardarJitensha / @SJitensha

07/07/2020 at 11:09AM

24
#924 - Виталий Макаров / @avada_keda_bra

07/12/2020 at 02:51PM

24
#925 - Daniel Habib / @danielhvs

07/20/2020 at 04:25AM

24
#926 - Sergey Averkiev / @ExAnimoso

07/23/2020 at 02:22PM

24
#927 - Chris Thompson / @ctmusicnz

07/27/2020 at 07:35AM

24
#928 - GenericHardwareGamer / @GnrikHrdwrGamer

08/04/2020 at 09:35AM

24
#929 - Martin Kauppinen / @MartinKauppinen

08/15/2020 at 09:12AM

24
#930 - Leonard Wagner / @leonard2997

08/17/2020 at 10:18AM