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

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

7358 active golfers, 33354 entries

Solutions by @tiagotriques:
22
#1681 - Tiago E. Triques / @tiagotriques

03/18/2019 at 12:30PM

23
#>2577 - Tiago E. Triques / @tiagotriques

11/04/2017 at 04:53PM

24
#>3003 - Tiago E. Triques / @tiagotriques

03/18/2019 at 12:28PM

25
#>3244 - Tiago E. Triques / @tiagotriques

11/04/2017 at 04:51PM

25
#>3244 - Tiago E. Triques / @tiagotriques

11/04/2017 at 04:52PM

26
#>3486 - Tiago E. Triques / @tiagotriques

03/28/2017 at 02:52PM

26
#>3522 - Tiago E. Triques / @tiagotriques

11/04/2017 at 01:31PM

27
#>3809 - Tiago E. Triques / @tiagotriques

03/28/2017 at 02:47PM

27
#>3809 - Tiago E. Triques / @tiagotriques

03/28/2017 at 02:49PM

27
#>3860 - Tiago E. Triques / @tiagotriques

11/04/2017 at 01:26PM

29
#>4647 - Tiago E. Triques / @tiagotriques

03/28/2017 at 02:41PM

29
#>4718 - Tiago E. Triques / @tiagotriques

11/04/2017 at 01:24PM

30
#>5069 - Tiago E. Triques / @tiagotriques

03/28/2017 at 01:54PM

31
#>5445 - Tiago E. Triques / @tiagotriques

03/28/2017 at 01:50PM

31
#>5488 - Tiago E. Triques / @tiagotriques

11/04/2017 at 01:31PM

33
#>6038 - Tiago E. Triques / @tiagotriques

03/28/2017 at 01:46PM

33
#>6061 - Tiago E. Triques / @tiagotriques

11/04/2017 at 01:24PM