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

7071 active golfers, 32052 entries

Leaderboard (lowest score wins):
36
#6451 - razlani / @razlani1

03/17/2019 at 12:24PM

36
#6452 - v1rusw0rm / @v1rusw0rm

03/17/2019 at 03:47PM

36
#6453 - EarthToAbigail / @EarthAbigail

04/02/2019 at 05:38AM

36
#6454 - whatstheirbucket / @whatstheirbuckt

04/04/2019 at 02:19PM

36
#6455 - virus / @fishmobius

04/17/2019 at 03:19PM

36
#6456 - john ford / @johnfor65634499

04/17/2019 at 10:11PM

36
#6457 - SeanPlusPlus / @SeanPlusPlus

04/29/2019 at 04:12PM

36
#6458 - Natuphik / @Natuphik

05/07/2019 at 06:22AM

36
#6459 - Joanna / @joannac_

05/12/2019 at 05:49AM

36
#6460 - Enrico Campidoglio / @ecampidoglio

05/13/2019 at 02:51PM

36
#6461 - xuxin / @xuxinmight

05/17/2019 at 02:30AM

36
#6462 - Sam Gentle / @Zanzibar_1sland

05/18/2019 at 03:57AM

36
#6463 - Reid / @reid_kilgore

07/19/2019 at 08:31PM

36
#6464 - ah ah / @ahah26555805

07/22/2019 at 09:14PM

36
#6465 - Clayton Mullis / @ClayMullis

07/30/2019 at 04:45PM

36
#6466 - tengrui / @Rui_Teng

08/18/2019 at 12:05PM

36
#6467 - Aaron / @aaronlichtman

09/24/2019 at 12:35PM

36
#6468 - William Kennedy / @William13792486

09/24/2019 at 01:45PM

36
#6469 - Humber Aquino / @goku2

10/12/2019 at 04:58AM

36
#6470 - bodhi47 / @bodhi47

11/04/2019 at 02:55PM

36
#6471 - Scott Powell / @ScottPowellM

11/07/2019 at 06:28PM

36
#6472 - Neolex / @NeolexSecurity

11/27/2019 at 11:17AM

36
#6473 - Shubham Aggarwal / @agshubh49

12/11/2019 at 12:42PM

36
#6474 - Jeremy Thompson / @jeremyt918

12/22/2019 at 12:36AM

36
#6475 - Maurits / @MauritsvA

01/13/2020 at 03:50PM

36
#6476 - Mike Wittie / @mike_wittie

01/15/2020 at 04:31PM

36
#6477 - Jamie Houston / @silvyn

02/25/2020 at 03:49PM

36
#6478 - 88paco / @88paco1

02/28/2020 at 05:14PM

36
#6479 - drudd / @drudd

03/08/2020 at 03:32AM

36
#6480 - volandkit / @volandkit

04/17/2020 at 09:18PM