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 @THSurlykke:

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

7358 active golfers, 33354 entries

Solutions by @THSurlykke:
22
#1618 - Thomas Surlykke / @THSurlykke

01/16/2019 at 11:51PM

22
#>1618 - Thomas Surlykke / @THSurlykke

01/16/2019 at 11:52PM

23
#>2632 - Thomas Surlykke / @THSurlykke

01/16/2019 at 11:48PM

24
#>2993 - Thomas Surlykke / @THSurlykke

01/16/2019 at 11:45PM

24
#>2993 - Thomas Surlykke / @THSurlykke

01/16/2019 at 11:47PM

25
#>3298 - Thomas Surlykke / @THSurlykke

01/16/2019 at 11:43PM

26
#>3591 - Thomas Surlykke / @THSurlykke

01/16/2019 at 11:41PM

27
#>3931 - Thomas Surlykke / @THSurlykke

01/16/2019 at 11:39PM

27
#>3931 - Thomas Surlykke / @THSurlykke

01/16/2019 at 11:40PM

28
#>4349 - Thomas Surlykke / @THSurlykke

01/16/2019 at 11:37PM

29
#>4816 - Thomas Surlykke / @THSurlykke

01/16/2019 at 11:34PM

29
#>4816 - Thomas Surlykke / @THSurlykke

01/16/2019 at 11:36PM

30
#>5207 - Thomas Surlykke / @THSurlykke

01/16/2019 at 11:33PM

34
#>6323 - Thomas Surlykke / @THSurlykke

01/16/2019 at 11:31PM

53
#>7288 - Thomas Surlykke / @THSurlykke

01/16/2019 at 11:50PM