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 6716 remaining solutions by signing in and submitting your own entry
#6717 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

6717 active golfers, 30347 entries

Leaderboard (lowest score wins):
33
#5611 - Binoui / @Binouilol

01/18/2019 at 02:04PM

33
#5612 - Graham Singer / @grahamsinger

01/26/2019 at 12:02AM

33
#5613 - Abhishek J. / @iabhishek1041

02/01/2019 at 03:16AM

33
#5614 - Todd Zimmerman / @zimmermant_uw

02/03/2019 at 12:47AM

33
#5615 - Alexander Burkov / @alex_burkov

02/14/2019 at 12:55PM

33
#5616 - PiGuy / @RealPiGuy

02/25/2019 at 03:45PM

33
#5617 - JT-Development.com / @JT_Development

03/04/2019 at 08:06AM

33
#5618 - Ken Yap / @chunrukkploy

03/04/2019 at 02:07PM

33
#5619 - Paul Slife / @pslife98

03/07/2019 at 01:13AM

33
#5620 - 임하정 / @m9XhkZL9XpMgt47

03/10/2019 at 11:06AM

33
#5621 - Elias Daler / @EliasDaler

03/12/2019 at 03:09PM

33
#5622 - tajmahal / @Teja635

03/12/2019 at 08:00PM

33
#5623 - Marko Z / @MarkoZ24828260

03/13/2019 at 06:32PM

33
#5624 - LoKi_gamer / @LoKigamer19

04/04/2019 at 03:42PM

33
#5625 - HMSBoaty / @HMS_Boaty

04/09/2019 at 09:55PM

33
#5626 - Calvin Yong / @calvinpyong

04/22/2019 at 12:33AM

33
#5627 - John / @techsystems_io

04/24/2019 at 01:24AM

33
#5628 - Antwane Mason / @admason1413

04/26/2019 at 12:12AM

33
#5629 - okkuu / @kenkenokkuu

04/28/2019 at 11:23PM

33
#5630 - R / @rvan3210

05/01/2019 at 04:22AM

33
#5631 - TheMagzuz / @DamMarkus

05/14/2019 at 10:38AM

33
#5632 - Mr. Lux / @the_lux

05/18/2019 at 11:38AM

33
#5633 - 🎈 / @mainshayne233

05/20/2019 at 03:33AM

33
#5634 - seul / @seul15987381

05/24/2019 at 04:24AM

33
#5635 - Draco Blackstone / @Sir_Draco309

05/28/2019 at 07:12PM

33
#5636 - Kevin Doherty / @KevBaby94

05/29/2019 at 12:20AM

33
#5637 - Philip / @vCoRezZ

06/06/2019 at 11:34AM

33
#5638 - bakk / @bakk88164925

06/06/2019 at 04:05PM

33
#5639 - Cookie4D / @Cookie4D1

06/06/2019 at 09:42PM

33
#5640 - pommevilla / @pawlrus

06/07/2019 at 10:09AM