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

6037 active golfers, 27114 entries

Leaderboard (lowest score wins):
34
#5251 - Marco Cárdenas / @mgtcardenas

03/09/2019 at 06:46PM

34
#5252 - tomjackbear / @tomjackbear

03/11/2019 at 01:45AM

34
#5253 - Michael Schreier / @micha_scr

03/15/2019 at 07:45AM

34
#5254 - とおやまただし / @toyama_tadashi

03/19/2019 at 03:46AM

34
#5255 - BernBe / @BernBe8

03/30/2019 at 04:34PM

34
#5256 - timothy weary / @fyrabanks

04/06/2019 at 09:41AM

34
#5257 - Zachary Cetinic / @Swervenstuff

04/08/2019 at 04:15PM

34
#5258 - Benjamin Kiefer / @bkiefs

04/18/2019 at 04:32PM

34
#5259 - anon19238719823 / @anon19238719823

04/23/2019 at 08:20AM

34
#5260 - Alon Greyber / @AlonGreyber

04/29/2019 at 10:38PM

34
#5261 - IHateTweeting999 / @ITweeting999

05/02/2019 at 10:39PM

34
#5262 - Julius Barendt / @Trdgrdsmstaren

05/11/2019 at 08:25PM

34
#5263 - Nico W. / @AirlessAtmo

05/12/2019 at 07:28PM

34
#5264 - regsdev / @regsdev

05/12/2019 at 08:27PM

34
#5265 - Martijn Courteaux / @courteauxm

05/14/2019 at 08:42AM

34
#5266 - Mihai Dinu / @mihaidmn

05/14/2019 at 11:56AM

34
#5267 - underjoy is very cute / @IceDynamix

05/19/2019 at 10:47PM

34
#5268 - John Gentile / @JohnnyGOX

05/25/2019 at 02:04AM

34
#5269 - Maksym P. / @Maksym20755721

06/15/2019 at 03:42PM

34
#5270 - Thiago Preischadt / @TPreischadt

07/10/2019 at 02:09AM

34
#5271 - bpseudopod / @bpseudopod

07/18/2019 at 05:49PM

34
#5272 - Сергей / @lzbuVZY1LQvXq5F

08/15/2019 at 02:02PM

34
#5273 - Bad / @badt2011

08/17/2019 at 10:35PM

34
#5274 - Charlie Pai / @charlie_pai

08/22/2019 at 11:05PM

34
#5275 - José / @AngelGaldamez

08/25/2019 at 04:49AM

34
#5276 - Michel Onwordi / @lupo342

08/25/2019 at 06:10PM

34
#5277 - Vichaya Raksakunpani / @toonbcc

09/02/2019 at 07:34AM

34
#5278 - Jason Birchall / @jsonBirchall

09/08/2019 at 10:43AM

34
#5279 - Temp / @San5nom

09/16/2019 at 02:25PM

34
#5280 - jeremy / @jeremy67339762

09/19/2019 at 04:10PM