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

6702 active golfers, 30244 entries

Leaderboard (lowest score wins):
33
#5581 - Andrew Quek / @AndrewQuek3

09/12/2018 at 02:47PM

33
#5582 - Daniel Morandini / @MorandiniDaniel

09/18/2018 at 12:08PM

33
#5583 - My Info / @michaelmdeng

09/19/2018 at 03:45AM

33
#5584 - dimitris tzikas / @dimtzikas

09/27/2018 at 12:37PM

33
#5585 - Apbsub / @apbsub

09/30/2018 at 01:22AM

33
#5586 - Schneider / @tweetschneider

10/02/2018 at 01:08PM

33
#5587 - Adam / @askoufish

10/23/2018 at 05:00AM

33
#5588 - Leandro / @leandro_solidum

11/02/2018 at 10:40PM

33
#5589 - Marten Ringwelski / @Marteon27

11/15/2018 at 06:51PM

33
#5590 - Pouet / @PouetForever

11/21/2018 at 01:49PM

33
#5591 - abdelrahman / @AbdoEsam2011

12/08/2018 at 02:43AM

33
#5592 - NiCk Chieng / @nickchNZ

01/02/2019 at 04:49AM

33
#5593 - Prem Oza / @OzaPrem

01/03/2019 at 11:22AM

33
#5594 - Claus Lensbøl / @lensboel

01/04/2019 at 11:10AM

33
#5595 - Dmatrix / @Dr_Dmatrix

01/10/2019 at 05:22PM

33
#5596 - Kyle Safran / @kylesafran

01/17/2019 at 08:27PM

33
#5597 - Binoui / @Binouilol

01/18/2019 at 02:04PM

33
#5598 - Graham Singer / @grahamsinger

01/26/2019 at 12:02AM

33
#5599 - Abhishek J. / @iabhishek1041

02/01/2019 at 03:16AM

33
#5600 - Todd Zimmerman / @zimmermant_uw

02/03/2019 at 12:47AM

33
#5601 - Alexander Burkov / @alex_burkov

02/14/2019 at 12:55PM

33
#5602 - PiGuy / @RealPiGuy

02/25/2019 at 03:45PM

33
#5603 - JT-Development.com / @JT_Development

03/04/2019 at 08:06AM

33
#5604 - Ken Yap / @chunrukkploy

03/04/2019 at 02:07PM

33
#5605 - Paul Slife / @pslife98

03/07/2019 at 01:13AM

33
#5606 - 임하정 / @m9XhkZL9XpMgt47

03/10/2019 at 11:06AM

33
#5607 - Elias Daler / @EliasDaler

03/12/2019 at 03:09PM

33
#5608 - tajmahal / @Teja635

03/12/2019 at 08:00PM

33
#5609 - Marko Z / @MarkoZ24828260

03/13/2019 at 06:32PM

33
#5610 - LoKi_gamer / @LoKigamer19

04/04/2019 at 03:42PM