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 6722 remaining solutions by signing in and submitting your own entry
#6723 Yushia Sou / @yuessiah - Score: 427 - 05/08/19 @ 16:47
VG<C-P><Esc><Esc>kkkkkkkkkkkVjjjjjjjjjjjjjjjjjjxi<50-53>*temp var1 0<CR>*temp var2 "hi"<CR>*temp var3 -1<CR>*temp var4 42<CR>*temp var5 "asdf"<CR>*temp var6 0<CR>*temp var7 11<CR><CR>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."<CR><CR>New text.<CR><CR>This challenge is just a simple movement and entering text at a certain place.<Esc>[201~jk<BS><BS><Esc> kk:wq<BS><BS>q<BS>wq<CR>

0 comments


Created by: @Flurrywinde

6723 active golfers, 30370 entries

Leaderboard (lowest score wins):
32
#5341 - princeodd / @princeodd1

05/30/2018 at 03:57PM

32
#5342 - Daniel Liden / @danjliden

06/08/2018 at 06:04PM

32
#5343 - David Adams / @Dadamsuk

07/02/2018 at 07:25PM

32
#5344 - Alfredo Ribeiro / @aribeiro

07/05/2018 at 01:17PM

32
#5345 - Morten Dalfoss / @MortenDalfoss

07/06/2018 at 04:48PM

32
#5346 - Saad / @ahmedsaad3084

07/20/2018 at 08:50PM

32
#5347 - Zack / @zmechua

07/26/2018 at 02:46AM

32
#5348 - 호도르 / @5jhDIioJ2FEnDbB

07/26/2018 at 06:05AM

32
#5349 - James Ford / @ACTIONJAMESMAN

07/28/2018 at 08:59PM

32
#5350 - Anh Trinh / @ptgamr

07/30/2018 at 11:03PM

32
#5351 - Igor Ignatov / @flyngate

08/03/2018 at 03:23PM

32
#5352 - fsj / @FrogzSJ

08/12/2018 at 08:20AM

32
#5353 - Enricu / @NricU

08/18/2018 at 03:36PM

32
#5354 - kblh / @heywhatsuphaloo

08/28/2018 at 12:59PM

32
#5355 - Fellow Millennium / @Fellow2000

09/02/2018 at 02:13PM

32
#5356 - goalstream / @goalstream1

09/05/2018 at 06:01PM

32
#5357 - soraka1337x / @soraka1337x

09/13/2018 at 03:55PM

32
#5358 - Jordan / @RiotChomey

09/20/2018 at 09:26PM

32
#5359 - Raphael Philipe / @rapphil

09/22/2018 at 05:31PM

32
#5360 - Amir Rajan / @amirrajan

10/11/2018 at 08:02AM

32
#5361 - Peter Ruschhaupt / @PeterRuschhaupt

10/19/2018 at 01:07PM

32
#5362 - Omar Zeidan / @OZeidan97

11/13/2018 at 11:21AM

32
#5363 - 905garlicjack / @905garlicjack

11/16/2018 at 11:53AM

32
#5364 - Dylan Lee / @tatadlee

11/19/2018 at 06:59PM

32
#5365 - Michael Rose / @mdroseDev

11/22/2018 at 03:12AM

32
#5366 - peter sorensen / @ptrsrsn

11/23/2018 at 01:38PM

32
#5367 - Jacob Mortensen / @jwmortensen

12/04/2018 at 11:47PM

32
#5368 - Vending Machine / @storyn26383

12/16/2018 at 06:37AM

32
#5369 - Alex Abiteliphon / @mastrjeff1

12/20/2018 at 04:32AM

32
#5370 - Alexis / @Alexis35668594

12/26/2018 at 11:40AM