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

6059 active golfers, 27223 entries

Leaderboard (lowest score wins):
38
#5731 - Ronnapob Ritprasert / @Ronnabop

07/07/2019 at 05:27AM

38
#5732 - rb / @rbinyyz

07/20/2019 at 01:14AM

38
#5733 - siledUp / @siledev1

07/22/2019 at 10:10PM

38
#5734 - coelacanth / @coelacanthco

10/10/2019 at 03:47PM

38
#5735 - Jared / @Jared86407153

10/17/2019 at 02:49AM

38
#5736 - damien / @GreatTestyTest

11/10/2019 at 06:30PM

38
#5737 - Timo Böhm / @TimoBohm

11/24/2019 at 06:33PM

38
#5738 - Harsil Patel / @harsilspatel

12/08/2019 at 06:05AM

38
#5739 - youaresourcecode / @youaresourceco1

12/10/2019 at 02:24PM

39
#5740 - Tammy Pop / @smurfikpop

10/08/2015 at 05:00AM

39
#5741 - sanderj07 / @sanderj07

11/14/2015 at 02:45AM

39
#5742 - Chrinux / @Chrinux

11/15/2015 at 03:01AM

39
#5743 - Steinar / @nerdelbaum

01/15/2016 at 09:57AM

39
#5744 - 012 / @Mandocas_powa

01/27/2016 at 07:43PM

39
#5745 - Adrien C. / @A31Cplt

05/02/2016 at 01:29PM

39
#5746 - Aisling / @AislingNimdis

05/15/2016 at 07:50AM

39
#5747 - hbd anon / @HBDAnon

06/07/2016 at 04:11PM

39
#5748 - Alexey Sopin / @AlexeySopin

06/28/2016 at 07:08PM

39
#5749 - jc / @joshuacalloway

08/23/2016 at 11:33PM

39
#5750 - MoreFreeze / @morefreeze

09/01/2016 at 05:02AM

39
#5751 - Niclas Thall / @thallniclas

10/28/2016 at 06:15AM

39
#5752 - Tong Cui / @TonyCui

06/26/2017 at 07:49AM

39
#5753 - 신승훈 / @h00nzzi

08/09/2017 at 02:49PM

39
#5754 - hetsketch / @hetsketch

08/09/2017 at 03:33PM

39
#5755 - Max / @maxjoehnk

08/24/2017 at 07:40PM

39
#5756 - Henry Jenkins / @steakunderscore

09/19/2017 at 07:32PM

39
#5757 - Charles D / @charliechin

09/19/2017 at 10:21PM

39
#5758 - Joma (Jonathan Ma) / @jomaoppa

09/26/2017 at 09:57PM

39
#5759 - Tehut G / @TahootyHoot

09/28/2017 at 05:11PM

39
#5760 - ♥ ☕ / @MACSkeptic

10/10/2017 at 08:07AM