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 by @dmcdona:

Unlock 12 remaining solutions by signing in and submitting your own entry
Created by: @Flurrywinde

7422 active golfers, 33621 entries

Solutions by @dmcdona:
22
#1779 - David McDonald / @dmcdona

05/18/2019 at 10:55PM

23
#>2655 - David McDonald / @dmcdona

05/18/2019 at 10:53PM

24
#>3027 - David McDonald / @dmcdona

05/18/2019 at 10:51PM

25
#>3340 - David McDonald / @dmcdona

05/18/2019 at 10:50PM

26
#>3636 - David McDonald / @dmcdona

05/18/2019 at 10:49PM

27
#>3976 - David McDonald / @dmcdona

05/18/2019 at 10:47PM

28
#>4408 - David McDonald / @dmcdona

05/18/2019 at 10:46PM

29
#>4863 - David McDonald / @dmcdona

05/18/2019 at 10:43PM

29
#>4863 - David McDonald / @dmcdona

05/18/2019 at 10:44PM

30
#>5258 - David McDonald / @dmcdona

05/16/2019 at 06:06AM

35
#>6585 - David McDonald / @dmcdona

05/15/2019 at 07:55AM

40
#>7096 - David McDonald / @dmcdona

05/15/2019 at 07:51AM