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 55b18bbea9c2c30d04000001

Simple, Practical, and Common

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

Start file
*temp var1 0
*temp var2 "hi"
*temp var3 -1
*temp var4 42
*temp var5 "asdf"
*temp var6 0

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way."

This challenge is just a simple movement and entering text at a certain place.
End file
*temp var1 0
*temp var2 "hi"
*temp var3 -1
*temp var4 42
*temp var5 "asdf"
*temp var6 0
*temp var7 11

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way."

New text.

This challenge is just a simple movement and entering text at a certain place.

View Diff

6a7
> *temp var7 11
8a10,11
> 
> New text.

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 5880 remaining solutions by signing in and submitting your own entry
#5881 Yushia Sou / @yuessiah - Score: 427 - 05/08/19 @ 16:47
VG<C-P><Esc><Esc>kkkkkkkkkkkVjjjjjjjjjjjjjjjjjjxi<50-53>*temp var1 0<CR>*temp var2 "hi"<CR>*temp var3 -1<CR>*temp var4 42<CR>*temp var5 "asdf"<CR>*temp var6 0<CR>*temp var7 11<CR><CR>Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way."<CR><CR>New text.<CR><CR>This challenge is just a simple movement and entering text at a certain place.<Esc>[201~jk<BS><BS><Esc> kk:wq<BS><BS>q<BS>wq<CR>

0 comments


Created by: @Flurrywinde

5881 active golfers, 26382 entries

Leaderboard (lowest score wins):
22
#961 - Song Zheng / @songz

06/26/2017 at 02:47AM

22
#962 - Peter / @PeterC1360

06/26/2017 at 09:56PM

22
#963 - vimgolf player / @VimgolfPlayer

06/26/2017 at 11:03PM

22
#964 - Loïc Peyrot / @LoPeyrotBMZ

06/27/2017 at 01:02PM

22
#965 - Bennett Bernardoni / @BBernardoni

06/28/2017 at 03:27PM

22
#966 - Nathan Gober / @thegobernador

06/29/2017 at 01:51PM

22
#967 - Kieron Browne / @KieronBrowne1

06/29/2017 at 04:03PM

22
#968 - flykule / @flykule

06/30/2017 at 08:05AM

22
#969 - 杨洋 / @176795444

06/30/2017 at 11:55AM

22
#970 - dogfooter / @dogfooter219

06/30/2017 at 06:42PM

22
#971 - Ben Hill / @KaizenSoze70

07/01/2017 at 02:02AM

22
#972 - Pfhor / @PfhorShark

07/01/2017 at 05:19PM

22
#973 - Ivan Poroliev / @p0pac

07/01/2017 at 09:04PM

22
#974 - Jacob Buete / @JBuete

07/02/2017 at 07:22AM

22
#975 - Barnaby Colby / @BarnabyColby

07/02/2017 at 07:04PM

22
#976 - John Marks / @__jmarks

07/03/2017 at 05:03PM

22
#977 - Andreas Bricelj / @mcbric

07/06/2017 at 07:08PM

22
#978 - Михаил Добров / @mSuGfwFz2ZNvv5b

07/08/2017 at 12:11PM

22
#979 - Gurukandhamoorthi / @Gurukandhamoor1

07/09/2017 at 11:53AM

22
#980 - Amalie Stokholm / @amalie_stokholm

07/09/2017 at 01:55PM

22
#981 - Orhan Mekic / @orhanmekic

07/09/2017 at 08:59PM

22
#982 - Dan Simmons / @simmons_dan

07/10/2017 at 02:30PM

22
#983 - Qing Wu / @wiserfirst

07/12/2017 at 04:39AM

22
#984 - Jon Barker / @j0nbarker

07/12/2017 at 08:17AM

22
#985 - Oksana / @oksanka_blaze

07/12/2017 at 04:00PM

22
#986 - apartment1812 / @apartment18121

07/13/2017 at 03:00AM

22
#987 - Tom Taylor / @larsonsduck

07/14/2017 at 01:13PM

22
#988 - Gabriel Siqueira / @Gabriel_HSiq

07/14/2017 at 05:55PM

22
#989 - huho / @huho_xu

07/21/2017 at 04:10AM

22
#990 - Preben Guldberg / @wielder

07/23/2017 at 09:30PM