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

6736 active golfers, 30431 entries

Leaderboard (lowest score wins):
33
#5641 - HMSBoaty / @HMS_Boaty

04/09/2019 at 09:55PM

33
#5642 - Calvin Yong / @calvinpyong

04/22/2019 at 12:33AM

33
#5643 - John / @techsystems_io

04/24/2019 at 01:24AM

33
#5644 - Antwane Mason / @admason1413

04/26/2019 at 12:12AM

33
#5645 - okkuu / @kenkenokkuu

04/28/2019 at 11:23PM

33
#5646 - R / @rvan3210

05/01/2019 at 04:22AM

33
#5647 - TheMagzuz / @DamMarkus

05/14/2019 at 10:38AM

33
#5648 - Mr. Lux / @the_lux

05/18/2019 at 11:38AM

33
#5649 - 🎈 / @mainshayne233

05/20/2019 at 03:33AM

33
#5650 - seul / @seul15987381

05/24/2019 at 04:24AM

33
#5651 - Draco Blackstone / @Sir_Draco309

05/28/2019 at 07:12PM

33
#5652 - Kevin Doherty / @KevBaby94

05/29/2019 at 12:20AM

33
#5653 - Philip / @vCoRezZ

06/06/2019 at 11:34AM

33
#5654 - bakk / @bakk88164925

06/06/2019 at 04:05PM

33
#5655 - Cookie4D / @Cookie4D1

06/06/2019 at 09:42PM

33
#5656 - pommevilla / @pawlrus

06/07/2019 at 10:09AM

33
#5657 - Arnold Kell / @KellArnold

06/12/2019 at 10:57AM

33
#5658 - Alexander Peplowski / @AlexPeplowski

06/12/2019 at 12:34PM

33
#5659 - Julien Gormotte / @gormux

07/05/2019 at 08:24AM

33
#5660 - Mitchell Hanberg / @mitchhanberg

07/12/2019 at 01:30AM

33
#5661 - Marcus Grass / @grass_marcus

07/15/2019 at 03:03PM

33
#5662 - Bob Ren / @bobrenjc93

07/24/2019 at 01:11AM

33
#5663 - Enoch / @_enocht

07/28/2019 at 10:10PM

33
#5664 - 那森 / @gewhersss

08/02/2019 at 06:29AM

33
#5665 - Haakon Borch / @BorchHaakon

08/13/2019 at 10:34AM

33
#5666 - Dan The Man / @VafelSukaPidar

08/16/2019 at 05:05AM

33
#5667 - Noah Gordon / @1noahgordon

08/21/2019 at 08:24AM

33
#5668 - RevoGen / @gen_revo

08/24/2019 at 05:23AM

33
#5669 - John Classon / @john_classon

08/26/2019 at 09:49AM

33
#5670 - Hung Hoang / @hoanghun5

08/26/2019 at 12:09PM