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

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

7399 active golfers, 33545 entries

Solutions by @theorem:
22
#2384 - theorem / @theorem

08/05/2023 at 01:36AM

23
#>2810 - theorem / @theorem

08/05/2023 at 01:35AM

24
#>3105 - theorem / @theorem

08/05/2023 at 01:34AM

25
#>3409 - theorem / @theorem

08/05/2023 at 01:33AM

26
#>3715 - theorem / @theorem

08/05/2023 at 01:32AM

27
#>4058 - theorem / @theorem

08/05/2023 at 01:30AM

28
#>4521 - theorem / @theorem

08/05/2023 at 01:27AM

30
#>5350 - theorem / @theorem

08/05/2023 at 01:21AM