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

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 5472 remaining solutions by signing in and submitting your own entry
#5473 KEBE Abdou Bigue / @KebeBigue - Score: 359 - 11/14/18 @ 11:15
jjjjjj<Esc>itemp var7<BS><BS><BS><BS><BS><BS><BS><BS><BS>*T<BS>temp var7 11j<BS><Esc>jj<Esc>iNex<BS>w text.k<BS><Esc>kkmllllll<CR><CR>kkllllllllllllluuU<Up><Up><Up><Down><Esc>I<Esc>I*T<BS>temp var7 11<Esc>jj<Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc>iNex<BS>w text.<Esc>kkllll<Esc>io<BS><Esc>llo<Esc>jjkjkllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllloj<BS><Esc>jllllllllloh<BS><Esc>h:Q<BS>wq<CR>

0 comments


Created by: @Flurrywinde

5473 active golfers, 24440 entries

Leaderboard (lowest score wins):
2
#1 - Random / @modandr

01/14/2019 at 06:22AM

2
#2 - Janek Szynal / @rrszynka

05/05/2019 at 05:38PM

2
#3 - MikuQB / @MikuQB

05/08/2019 at 05:37PM

2
#4 - Yushia Sou / @yuessiah

05/08/2019 at 05:38PM

2
#5 - cjariebs / @cjariebs1

05/14/2019 at 03:38AM

2
#6 - Simon Zeng / @KronicMan

06/15/2019 at 04:44PM

3
#7 - Tomas Burianek / @TomasBurianek

06/15/2019 at 06:33PM

4
#8 - 波波 / @sbob87

04/24/2019 at 09:24AM

5
#9 - A B / @AB85663500

11/16/2018 at 08:18PM

5
#10 - Commi / @hellocommi

11/23/2018 at 06:59PM

7
#11 - James LaChance / @FatBoyXPC

10/11/2018 at 06:50AM

7
#12 - Maciej Skowronek / @mskowronsky

12/11/2018 at 01:11AM

7
#13 - Bård Dybwad Kristensen / @BardDybwad

12/21/2018 at 02:13PM

7
#14 - Grorco / @grorco

01/07/2019 at 03:58PM

7
#15 - Sébastien Lavoie / @sgdlavoie

03/03/2019 at 04:56AM

7
#16 - Kai.Li / @KaiLi19

04/27/2019 at 07:04AM

7
#17 - Felipe Monteiro / @monteiro_fp

05/08/2019 at 05:12PM

7
#18 - salmiak / @salmiak7

05/15/2019 at 10:40PM

7
#19 - Tim Dean / @Tmdean

06/06/2019 at 03:53PM

8
#20 - FP / @FPjde

04/11/2019 at 09:18PM

9
#21 - Pratik / @prathik_t

04/10/2019 at 01:19PM

11
#22 - Maxim Kim / @mxmkm

10/25/2018 at 09:11AM

12
#23 - noname / @noname75810867

02/09/2019 at 06:00AM

12
#24 - Alex Balgavy / @alexbalgavy

02/28/2019 at 01:46PM

13
#25 - bignos / @bignos2

09/21/2018 at 04:31PM

13
#26 - chocolate / @chocola81394123

01/20/2019 at 02:44PM

14
#27 - Fichera Gaetano / @gaetanofic

04/05/2018 at 09:02AM

14
#28 - Daniel Beck / @daniel_beck_il

04/20/2018 at 04:39PM

14
#29 - fucus / @fishlovebanana

07/27/2018 at 01:32PM

14
#30 - nemonomine / @nemonomine

08/23/2018 at 04:02PM