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

7241 active golfers, 32765 entries

Leaderboard (lowest score wins):
35
#6361 - Nicolás Salas V. / @nicosalasv

05/12/2017 at 06:20AM

35
#6362 - siwa / @siwabada

06/04/2017 at 12:32AM

35
#6363 - Joseph Abell / @GerbilsInSpace

06/04/2017 at 10:31PM

35
#6364 - Adam Bozanich / @abozanich

06/07/2017 at 11:33PM

35
#6365 - Frozen Voice / @FrozenVoice

06/16/2017 at 12:41AM

35
#6366 - Fetiorin / @Fetiorin

06/29/2017 at 05:11AM

35
#6367 - Hendry Sadrak / @hendrysadrak

07/14/2017 at 09:53AM

35
#6368 - Jarrod Rotolo / @jerryg311

07/28/2017 at 10:06PM

35
#6369 - Adam Matan / @adam_matan

07/31/2017 at 04:23PM

35
#6370 - Vasily Novikov / @helensw06796314

08/07/2017 at 05:12PM

35
#6371 - Calvin / @qiCalvin

08/15/2017 at 08:38PM

35
#6372 - (((M Litherland))) / @mike_litherland

08/25/2017 at 07:00PM

35
#6373 - Elronnd / @earenndil

08/26/2017 at 05:42AM

35
#6374 - Dipanjan / @patraanjan23

08/26/2017 at 05:45AM

35
#6375 - Princess Luna / @yoursdearboy

09/13/2017 at 10:55AM

35
#6376 - Sam Ringleman / @theRingleman

09/29/2017 at 05:11PM

35
#6377 - DrGodCarl / @DrGodCarl

10/04/2017 at 02:44PM

35
#6378 - Ruben De Smet / @rubdos

11/08/2017 at 05:40PM

35
#6379 - Justin Mullin / @JustinMullin

11/14/2017 at 03:54AM

35
#6380 - Michael Heyman / @michaelheyman

11/16/2017 at 02:25AM

35
#6381 - Georgy Komarov / @GeorgyKomarov

11/24/2017 at 03:40PM

35
#6382 - duxifuhivo@p33.org / @duxifuhivo

12/14/2017 at 12:32PM

35
#6383 - Ahmed Hasan / @ahmedrhasan

12/22/2017 at 06:49PM

35
#6384 - Dmitriy Meleshko / @mitrio2

01/16/2018 at 08:32PM

35
#6385 - Sourciluss / @sourciluss

01/22/2018 at 12:07AM

35
#6386 - Will Toher / @WillFAVI

02/04/2018 at 12:23AM

35
#6387 - Patrick / @example_patrick

03/09/2018 at 09:34PM

35
#6388 - twitbot / @twitbort

04/18/2018 at 08:58PM

35
#6389 - olivier lemoigne / @olivierlemoigne

05/04/2018 at 12:24PM

35
#6390 - chen xi / @cx_80

05/07/2018 at 02:30PM