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

6052 active golfers, 27198 entries

Leaderboard (lowest score wins):
38
#5701 - Yudi Supriyadi / @yudi099

10/06/2018 at 05:59AM

38
#5702 - Shunichi Kanade / @shunkana

11/04/2018 at 12:12AM

38
#5703 - K Lieu / @KDLieu

11/05/2018 at 07:02AM

38
#5704 - Cyprian / @Cyprian19777975

11/06/2018 at 11:15AM

38
#5705 - Daviwys / @daviwys

11/15/2018 at 07:04PM

38
#5706 - Amir Hossein / @AmirHRAD8

11/22/2018 at 06:38PM

38
#5707 - Monica Blaylock / @mblaylock415

11/29/2018 at 01:35AM

38
#5708 - Noy Pearl / @NoyPearl

12/03/2018 at 08:48PM

38
#5709 - Mario García / @mgarciavisual

12/11/2018 at 08:43AM

38
#5710 - Gluka / @Gluka__

12/31/2018 at 11:26AM

38
#5711 - Christian Wood / @ChristianWood3

01/03/2019 at 04:25AM

38
#5712 - MenloDubsGuy / @chrisahinrichs

02/08/2019 at 10:15PM

38
#5713 - Dader / @Dader90840920

02/25/2019 at 02:44PM

38
#5714 - Thilan Tran / @ThilanTran

03/14/2019 at 04:14PM

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

03/26/2019 at 10:28AM

38
#5716 - Lochie Westfall / @lochie274

03/29/2019 at 04:48AM

38
#5717 - Bonnie Rhee / @brhee_cheese

03/29/2019 at 04:30PM

38
#5718 - lusiwei / @lusiwei1

04/12/2019 at 05:40AM

38
#5719 - zkunsang / @zkunsang

04/14/2019 at 12:11PM

38
#5720 - nicholas joaquin / @thiccboi98

04/17/2019 at 08:12PM

38
#5721 - 沸腾钢 / @tobecloud

04/19/2019 at 08:23AM

38
#5722 - Abraham NM / @abrahamnm

05/15/2019 at 02:03AM

38
#5723 - Christopher Powroznik / @Metroxe

05/21/2019 at 07:10PM

38
#5724 - Ronnapob Ritprasert / @Ronnabop

07/07/2019 at 05:27AM

38
#5725 - rb / @rbinyyz

07/20/2019 at 01:14AM

38
#5726 - siledUp / @siledev1

07/22/2019 at 10:10PM

38
#5727 - coelacanth / @coelacanthco

10/10/2019 at 03:47PM

38
#5728 - Jared / @Jared86407153

10/17/2019 at 02:49AM

38
#5729 - damien / @GreatTestyTest

11/10/2019 at 06:30PM

38
#5730 - Timo Böhm / @TimoBohm

11/24/2019 at 06:33PM