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

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

7364 active golfers, 33385 entries

Solutions by @_tomhoule:
22
#91 - Tom Houlé / @_tomhoule

09/13/2015 at 06:41AM

22
#>91 - Tom Houlé / @_tomhoule

09/13/2015 at 06:44AM

22
#>863 - Tom Houlé / @_tomhoule

04/19/2017 at 04:05PM

23
#>2415 - Tom Houlé / @_tomhoule

09/13/2015 at 06:40AM

24
#>2813 - Tom Houlé / @_tomhoule

09/13/2015 at 06:39AM

24
#>2910 - Tom Houlé / @_tomhoule

04/19/2017 at 03:58PM

26
#>3405 - Tom Houlé / @_tomhoule

09/13/2015 at 06:36AM

26
#>3493 - Tom Houlé / @_tomhoule

04/19/2017 at 03:45PM

27
#>3718 - Tom Houlé / @_tomhoule

09/13/2015 at 06:34AM

27
#>3819 - Tom Houlé / @_tomhoule

04/19/2017 at 03:38PM

28
#>4060 - Tom Houlé / @_tomhoule

09/13/2015 at 06:29AM

29
#>4658 - Tom Houlé / @_tomhoule

04/19/2017 at 03:02PM

30
#>4973 - Tom Houlé / @_tomhoule

09/13/2015 at 06:25AM

32
#>5770 - Tom Houlé / @_tomhoule

04/19/2017 at 03:00PM

34
#>6226 - Tom Houlé / @_tomhoule

09/13/2015 at 06:27AM

55
#>7304 - Tom Houlé / @_tomhoule

09/13/2015 at 06:23AM