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

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

7474 active golfers, 33866 entries

Solutions by @williamsurles:
22
#765 - William Surles / @williamsurles

01/12/2017 at 09:49PM

23
#>2563 - William Surles / @williamsurles

01/12/2017 at 09:22PM

23
#>2563 - William Surles / @williamsurles

01/12/2017 at 09:44PM

23
#>2563 - William Surles / @williamsurles

01/12/2017 at 09:46PM

24
#>2929 - William Surles / @williamsurles

01/12/2017 at 09:16PM

24
#>2929 - William Surles / @williamsurles

01/12/2017 at 09:18PM

25
#>3243 - William Surles / @williamsurles

01/12/2017 at 09:11PM

26
#>3531 - William Surles / @williamsurles

01/12/2017 at 09:08PM

27
#>3850 - William Surles / @williamsurles

01/12/2017 at 09:05PM

28
#>4224 - William Surles / @williamsurles

01/12/2017 at 08:59PM

29
#>4687 - William Surles / @williamsurles

01/12/2017 at 09:04PM

31
#>5500 - William Surles / @williamsurles

01/12/2017 at 02:59PM

32
#>5829 - William Surles / @williamsurles

01/12/2017 at 02:57PM

35
#>6539 - William Surles / @williamsurles

01/12/2017 at 02:52PM

37
#>6861 - William Surles / @williamsurles

01/12/2017 at 02:45PM

37
#>6861 - William Surles / @williamsurles

01/12/2017 at 02:50PM

73
#>7458 - William Surles / @williamsurles

01/12/2017 at 02:41PM

85
#>7465 - William Surles / @williamsurles

01/12/2017 at 02:38PM

255
#>7471 - William Surles / @williamsurles

01/20/2017 at 12:29PM