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, 32773 entries

Leaderboard (lowest score wins):
53
#7171 - stephanebiolley / @biobio31

09/26/2018 at 09:45AM

53
#7172 - Allison Wang / @Drawwinng

10/29/2018 at 01:00AM

53
#7173 - Kishou Yusa / @YusaKishou

07/18/2019 at 04:44AM

53
#7174 - Anuvrat Singh / @SinghAnuvrat

08/23/2020 at 03:52AM

53
#7175 - Snazzy Sanoj / @snazzysanoj

12/17/2020 at 10:41AM

54
#7176 - gosharplite / @gosharplite

04/24/2017 at 06:07AM

54
#7177 - Chris Wong / @ChrisWongNHS

08/19/2018 at 08:19AM

54
#7178 - Daniel Snitkovskiy / @DSnitkovskiy

04/07/2019 at 06:30AM

54
#7179 - Sina Karimi / @creamycode

05/07/2019 at 12:22PM

54
#7180 - Daming Lu / @Daming_Lu

11/13/2019 at 07:48PM

54
#7181 - 13tricks / @13tricks1

02/29/2020 at 06:05PM

54
#7182 - Adrien Guillement / @AdrienGuillem

08/06/2020 at 11:46AM

55
#7183 - he / @HeRedemption

06/22/2016 at 08:28AM

55
#7184 - jan fabian / @janfabian___

08/25/2016 at 09:37AM

55
#7185 - Nícolas Tarzia / @nicolastarzia

09/19/2017 at 07:12PM

55
#7186 - Shane Gibbs / @fuse512

08/28/2018 at 01:51AM

55
#7187 - serggeiii / @serggeiii

02/15/2019 at 06:30AM

55
#7188 - xd noob / @xd_noobs

05/29/2021 at 11:55PM

56
#7189 - 莊秉澂 / @cYZAfEdeAPRsh7G

09/20/2020 at 06:44AM

57
#7190 - Eric Leung / @erictleung

12/06/2015 at 11:22AM

57
#7191 - Iman Tabrizian / @ImanTabrizian

03/09/2016 at 09:51PM

57
#7192 - Will Bradley / @wbbradley

08/08/2017 at 04:42PM

57
#7193 - J Rhine / @joelrhine

02/06/2018 at 04:04AM

57
#7194 - musiquoman / @musiquoman007

11/12/2018 at 11:22AM

57
#7195 - Vermeire Marie-France / @FranceVermeire

11/14/2018 at 10:26AM

57
#7196 - Kiran Kumar Manku / @kirankumarmanku

03/27/2020 at 11:35PM

57
#7197 - Sam Christensen / @samuelchriste

11/24/2020 at 04:37AM

58
#7198 - Unityお姉さん♡ / @unichan___

06/10/2016 at 04:42AM

59
#7199 - Mick Niepoth / @mickniepoth

10/27/2017 at 02:00PM

59
#7200 - e / @thestudygoddess

11/16/2020 at 05:50AM