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

7071 active golfers, 32052 entries

Leaderboard (lowest score wins):
37
#6511 - Никита Дячина / @RuBJSRh6WrdykDI

10/23/2016 at 12:45PM

37
#6512 - Dmitri Tchebotarev / @dmitri_t

10/27/2016 at 04:43AM

37
#6513 - Rahul Gupta 🎹 / @pezcoder

11/11/2016 at 07:06PM

37
#6514 - Luis Rascão / @lrascao

11/13/2016 at 01:33AM

37
#6515 - 21389104298208943812 / @j1359534

12/12/2016 at 10:34PM

37
#6516 - Nate Casale / @Castallion

02/22/2017 at 05:41PM

37
#6517 - Kevin K / @okkays

04/17/2017 at 08:20PM

37
#6518 - SpermWhale / @AwhaleThatCodes

04/28/2017 at 12:25PM

37
#6519 - geeeek / @geeeek100

05/13/2017 at 03:40AM

37
#6520 - IgnatiusMcGowan / @IgnatiusMcGowan

05/23/2017 at 07:04PM

37
#6521 - nathanlrf / @nathanlrf

07/10/2017 at 12:49AM

37
#6522 - Ildar Gilfanov / @Ildar_Razin

07/21/2017 at 07:12PM

37
#6523 - Akin S / @Akin_So

09/26/2017 at 12:12AM

37
#6524 - Nikita Pupko / @LazyNick7

10/30/2017 at 04:04PM

37
#6525 - Drop the cow / @vodka_medved_

11/03/2017 at 01:51PM

37
#6526 - Michael Yeh / @hinet60613

12/20/2017 at 04:04AM

37
#6527 - artisan bed maker / @ebencooke

01/14/2018 at 04:57PM

37
#6528 - Yuta UEKI / @ueki05

02/12/2018 at 08:51AM

37
#6529 - Shannon Brooks / @coder_shannon

03/29/2018 at 06:53PM

37
#6530 - 강그루 / @kidkkr

04/08/2018 at 05:27AM

37
#6531 - Karol Babioch / @kabab88

06/03/2018 at 09:08PM

37
#6532 - Priesemut / @Priesemut3

06/19/2018 at 07:32AM

37
#6533 - Lunar Gods Cry Too / @lunarsobs

06/29/2018 at 10:05PM

37
#6534 - j3ffyang / @j3ffyang

07/15/2018 at 03:06PM

37
#6535 - asdf / @asdf57316995

07/16/2018 at 09:37AM

37
#6536 - Mats Tage / @matstage

07/23/2018 at 05:55PM

37
#6537 - Evgeniy Abramov / @kioninja

08/30/2018 at 07:57AM

37
#6538 - ISUCON出る人居ませんか / @mactkg

08/30/2018 at 11:25AM

37
#6539 - Tim Guo / @GuoTim

09/05/2018 at 03:58PM

37
#6540 - mos7624 / @mos7624

09/07/2018 at 07:46AM