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

6727 active golfers, 30384 entries

Leaderboard (lowest score wins):
32
#5461 - Tzero Ocne / @TzeroOcne

05/08/2020 at 11:09AM

32
#5462 - Mack Hutsell / @sellshuts

05/23/2020 at 07:54AM

32
#5463 - kujbika / @kujbika

06/15/2020 at 01:49PM

32
#5464 - Ron-Shan,Chang / @highlupin

07/01/2020 at 01:23PM

33
#5465 - ArturoC / @r2ro

07/24/2015 at 01:46AM

33
#5466 - Vincent Yu / @vyuniverse

07/24/2015 at 04:02AM

33
#5467 - Nick Dancer / @nj_dancer

08/07/2015 at 05:36AM

33
#5468 - Tom Elliott / @theotherelliott

08/11/2015 at 04:14PM

33
#5469 - DanSnow / @dododavid006

08/26/2015 at 01:53PM

33
#5470 - kotakanbe / @kotakanbe

09/01/2015 at 02:53PM

33
#5471 - Andrew Michaud / @andrewjmichaud

09/03/2015 at 11:30PM

33
#5472 - Aleksey N. / @nag5001

09/05/2015 at 03:42PM

33
#5473 - Mika .B / @Michael_Ben_Ali

09/10/2015 at 01:00PM

33
#5474 - Svenni Dal / @svennidal

09/25/2015 at 10:31AM

33
#5475 - Adam Cook / @apcook

10/02/2015 at 06:08PM

33
#5476 - Eric Liu / @arcane_glow

10/05/2015 at 06:19PM

33
#5477 - Erik Stenlund / @Erik_Stenlund

10/18/2015 at 02:38PM

33
#5478 - randomname123 / @megaflyingcamel

10/25/2015 at 03:06PM

33
#5479 - Artur Kęsik / @arturkesik

10/30/2015 at 11:40AM

33
#5480 - Sivakumar kailasam / @sivakumar_k

11/04/2015 at 12:50PM

33
#5481 - raajay viswanathan / @raajay

11/05/2015 at 09:25PM

33
#5482 - Charleston / @cv9828

11/28/2015 at 12:33AM

33
#5483 - Diego Goncalves / @DiegoGoncalve19

11/28/2015 at 07:37PM

33
#5484 - Danijel Mitar / @DanijelMitar

12/13/2015 at 05:01PM

33
#5485 - Cerborr Rizescu / @dutenpizdamatii

12/22/2015 at 09:21AM

33
#5486 - Jan / @GrzegorowskiJan

01/01/2016 at 11:56PM

33
#5487 - wilddog64 / @chengkai318

01/06/2016 at 09:57PM

33
#5488 - KongFu / @_kongfu

01/16/2016 at 09:01AM

33
#5489 - Kenny Wright / @KenAkaMrWright

01/28/2016 at 07:28PM

33
#5490 - Chris Elston / @CAElston

01/29/2016 at 11:39PM