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

5870 active golfers, 26338 entries

Leaderboard (lowest score wins):
38
#5521 - Ola Johansson / @oj_johansson

04/20/2018 at 12:18PM

38
#5522 - Pablo P Varela / @pablopunk

05/03/2018 at 11:51AM

38
#5523 - Christian Rasmussen / @alfabetacain

05/03/2018 at 01:39PM

38
#5524 - Алексей Торрин / @forkiy

05/08/2018 at 11:27AM

38
#5525 - Cole Helbling / @helbling_cole

08/10/2018 at 01:52AM

38
#5526 - Rafael 117 / @Rafael117j

08/23/2018 at 03:05PM

38
#5527 - Noah Klein / @noahkle

08/24/2018 at 04:42PM

38
#5528 - kevin / @kevin_sdc

08/31/2018 at 04:52PM

38
#5529 - Daniel Karlsson / @Kaameo_o

09/12/2018 at 03:12AM

38
#5530 - Александр Шарипов / @tehadawest

09/22/2018 at 04:02PM

38
#5531 - Yudi Supriyadi / @yudi099

10/06/2018 at 05:59AM

38
#5532 - Shunichi Kanade / @shunkana

11/04/2018 at 12:12AM

38
#5533 - K Lieu / @KDLieu

11/05/2018 at 07:02AM

38
#5534 - Cyprian / @Cyprian19777975

11/06/2018 at 11:15AM

38
#5535 - Daviwys / @daviwys

11/15/2018 at 07:04PM

38
#5536 - Amir Hossein / @AmirHRAD8

11/22/2018 at 06:38PM

38
#5537 - Monica Blaylock / @mblaylock415

11/29/2018 at 01:35AM

38
#5538 - Noy Pearl / @NoyPearl

12/03/2018 at 08:48PM

38
#5539 - Mario García / @mgarciavisual

12/11/2018 at 08:43AM

38
#5540 - Gluka / @Gluka__

12/31/2018 at 11:26AM

38
#5541 - Christian Wood / @ChristianWood3

01/03/2019 at 04:25AM

38
#5542 - MenloDubsGuy / @chrisahinrichs

02/08/2019 at 10:15PM

38
#5543 - Dader / @Dader90840920

02/25/2019 at 02:44PM

38
#5544 - Thilan Tran / @ThilanTran

03/14/2019 at 04:14PM

38
#5545 - слизький скун / @MoufetteBaveuse

03/26/2019 at 10:28AM

38
#5546 - Lochie Westfall / @lochie274

03/29/2019 at 04:48AM

38
#5547 - Bonnie Rhee / @brhee_cheese

03/29/2019 at 04:30PM

38
#5548 - lusiwei / @lusiwei1

04/12/2019 at 05:40AM

38
#5549 - zkunsang / @zkunsang

04/14/2019 at 12:11PM

38
#5550 - nicholas joaquin / @thiccboi98

04/17/2019 at 08:12PM