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

6052 active golfers, 27198 entries

Leaderboard (lowest score wins):
36
#5551 - whatstheirbucket / @whatstheirbuckt

04/04/2019 at 02:19PM

36
#5552 - Herman Stavelin / @HsBruker

04/04/2019 at 04:57PM

36
#5553 - virus / @fishmobius

04/17/2019 at 03:19PM

36
#5554 - john ford / @johnfor65634499

04/17/2019 at 10:11PM

36
#5555 - SeanPlusPlus / @SeanPlusPlus

04/29/2019 at 04:12PM

36
#5556 - Natuphik / @Natuphik

05/07/2019 at 06:22AM

36
#5557 - Joanna / @joannac_

05/12/2019 at 05:49AM

36
#5558 - Enrico Campidoglio / @ecampidoglio

05/13/2019 at 02:51PM

36
#5559 - xuxin / @xuxinmight

05/17/2019 at 02:30AM

36
#5560 - Sam Gentle / @Zanzibar_1sland

05/18/2019 at 03:57AM

36
#5561 - Reid / @reid_kilgore

07/19/2019 at 08:31PM

36
#5562 - ah ah / @ahah26555805

07/22/2019 at 09:14PM

36
#5563 - Clayton Mullis / @ClayMullis

07/30/2019 at 04:45PM

36
#5564 - tengrui / @Rui_Teng

08/18/2019 at 12:05PM

36
#5565 - Aaron / @aaronlichtman

09/24/2019 at 12:35PM

36
#5566 - William Kennedy / @William13792486

09/24/2019 at 01:45PM

36
#5567 - Humber Aquino / @goku2

10/12/2019 at 04:58AM

36
#5568 - bodhi47 / @bodhi47

11/04/2019 at 02:55PM

36
#5569 - Scott Powell / @ScottPowellM

11/07/2019 at 06:28PM

36
#5570 - Neolex / @NeolexSecurity

11/27/2019 at 11:17AM

36
#5571 - Shubham Aggarwal / @agshubh49

12/11/2019 at 12:42PM

37
#5572 - 0xEE / @ejcx_

09/18/2015 at 11:13PM

37
#5573 - levicook / @levicook

11/09/2015 at 07:05PM

37
#5574 - โป๊งเหน่ง.js / @biiterlove

12/08/2015 at 05:04AM

37
#5575 - Justyna Rachowicz / @mrowa44

12/24/2015 at 01:09PM

37
#5576 - Stas Karpov / @dragothefiery

02/18/2016 at 09:37AM

37
#5577 - reyonman / @reyonman

02/24/2016 at 11:11PM

37
#5578 - Ryan Diaz / @RyanDiaz18

03/26/2016 at 04:25AM

37
#5579 - Thenix Down / @thenixdown

04/20/2016 at 03:38PM

37
#5580 - Ramon Sanabria / @Sanabria_RST

05/30/2016 at 12:24AM