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 6593 remaining solutions by signing in and submitting your own entry
#6594 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

6594 active golfers, 29781 entries

Leaderboard (lowest score wins):
32
#5341 - Matthew Karcher / @mattrfk

02/05/2020 at 05:38AM

32
#5342 - Asim / @Asim99980694

02/09/2020 at 04:47PM

32
#5343 - Nguyen Hung / @Ikazuchi16

03/13/2020 at 11:06AM

32
#5344 - Vitor / @vitorldfreitas

03/21/2020 at 09:29PM

32
#5345 - Thomas Baker / @tombakerii

03/23/2020 at 01:55PM

32
#5346 - Andy Falcon-Gonzalez / @Andyfg29

03/25/2020 at 08:18PM

32
#5347 - Jose Soto / @JoseCanHelp

03/31/2020 at 05:47AM

32
#5348 - Kelvin Meyer / @Kelvin_Meyer15

04/09/2020 at 11:55AM

32
#5349 - Sai Hemanth / @saihemanth9019

04/09/2020 at 02:37PM

32
#5350 - Graham Parsons / @grpieces

04/12/2020 at 06:21PM

32
#5351 - sed / @811272067649

04/28/2020 at 12:12AM

32
#5352 - Alex Mace / @AMace23

05/07/2020 at 08:09PM

32
#5353 - Tzero Ocne / @TzeroOcne

05/08/2020 at 11:09AM

32
#5354 - Mack Hutsell / @HutsellMack

05/23/2020 at 07:54AM

33
#5355 - ArturoC / @r2ro

07/24/2015 at 01:46AM

33
#5356 - Vincent Yu / @vyuniverse

07/24/2015 at 04:02AM

33
#5357 - Nick Dancer / @nj_dancer

08/07/2015 at 05:36AM

33
#5358 - Tom Elliott / @theotherelliott

08/11/2015 at 04:14PM

33
#5359 - DanSnow / @dododavid006

08/26/2015 at 01:53PM

33
#5360 - kotakanbe / @kotakanbe

09/01/2015 at 02:53PM

33
#5361 - Andrew Michaud / @andrewjmichaud

09/03/2015 at 11:30PM

33
#5362 - Aleksey N. / @nag5001

09/05/2015 at 03:42PM

33
#5363 - Mika .B / @Michael_Ben_Ali

09/10/2015 at 01:00PM

33
#5364 - Svenni Dal / @svennidal

09/25/2015 at 10:31AM

33
#5365 - Adam Cook / @apcook

10/02/2015 at 06:08PM

33
#5366 - Eric Liu / @arcane_glow

10/05/2015 at 06:19PM

33
#5367 - Erik Stenlund / @Erik_Stenlund

10/18/2015 at 02:38PM

33
#5368 - randomname123 / @megaflyingcamel

10/25/2015 at 03:06PM

33
#5369 - Artur Kęsik / @arturkesik

10/30/2015 at 11:40AM

33
#5370 - Sivakumar kailasam / @sivakumar_k

11/04/2015 at 12:50PM