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

7235 active golfers, 32743 entries

Leaderboard (lowest score wins):
44
#7051 - Alex C-G ๐Ÿณ๏ธโ€๐ŸŒˆ / @alexcg

04/24/2019 at 05:15AM

44
#7052 - Favio Manriquez / @favrik

05/21/2019 at 05:46AM

44
#7053 - Chris Gammell / @Chris_Gammell

09/20/2019 at 09:12PM

44
#7054 - Le nom ne peut pas รชtre vide / @toitoine0710

12/24/2019 at 08:30AM

44
#7055 - oponkork / @oponkork

01/10/2020 at 01:31PM

44
#7056 - r4d1um / @r4d1um

03/13/2020 at 12:10PM

44
#7057 - Sarayut Lawilai / @imkopkap

05/06/2020 at 05:02AM

44
#7058 - Ajay Raj / @ajayr98

05/13/2020 at 09:13PM

44
#7059 - Molly & Milo / @molly_milo

05/18/2020 at 08:17PM

44
#7060 - migel1976 / @migel19760103

05/20/2020 at 08:29PM

44
#7061 - ใ‚ˆใใจโ˜„็ตถ่ตทใฎ้”ไบบ๐ŸŒž้€š๐ŸŒž็Ÿฅ๐ŸŒžใ‚‚๐ŸŒžๆฐ—๐ŸŒžๅˆ†๐ŸŒžใ‚‚๐ŸŒžๆ˜Ž๐ŸŒžใ‚‹๐ŸŒžใ๐ŸŒž๐ŸŒž๐ŸŒž๐ŸŒž๐ŸŒž๐ŸŒž๐ŸŒž / @yokto_science

07/11/2020 at 05:18PM

44
#7062 - leo / @leo93755786

08/27/2020 at 11:45AM

45
#7063 - Harshavardhan Kittur / @hbk1517

09/19/2015 at 09:39PM

45
#7064 - K Aravind Kumar / @ezbi_124

02/06/2016 at 12:17PM

45
#7065 - Mike Ennen / @brcolow

05/02/2016 at 04:41AM

45
#7066 - Walter Mottinelli / @wmotti

07/26/2016 at 02:05PM

45
#7067 - Brice Bathel / @test_brice

01/03/2017 at 10:14PM

45
#7068 - Maciek Wฤ…troba / @maciekbb

04/06/2017 at 12:44PM

45
#7069 - Damien Cosset / @DamCosset

04/21/2017 at 03:10PM

45
#7070 - Jonathan Letham / @JonathanLetham

09/19/2017 at 08:47AM

45
#7071 - hansameel / @HansAmeel

04/14/2018 at 12:53PM

45
#7072 - Stanislas Brossette / @stanbroceth

05/03/2018 at 02:48PM

45
#7073 - Piotr Gospodarek / @PiotrGospodarek

06/07/2018 at 06:10PM

45
#7074 - Joseph ์šฉํ˜ธ Kwon / @josephkwon0

07/09/2018 at 01:59AM

45
#7075 - Elliot Harik / @ElliotHarik

08/25/2018 at 12:59AM

45
#7076 - Connor Kirkpatrick / @ConnorKP

02/16/2019 at 08:49AM

45
#7077 - Sean Curtis / @SeanPCurtis

04/24/2019 at 10:58PM

45
#7078 - Kyle Derosha / @KyleDerosha

12/05/2019 at 09:22PM

45
#7079 - sunny / @pooisonner

05/27/2020 at 06:40AM

46
#7080 - Tareq Fadel / @DeltaWorld

06/09/2016 at 12:49PM