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

7447 active golfers, 33742 entries

Leaderboard (lowest score wins):
44
#7261 - leo / @leo93755786

08/27/2020 at 11:45AM

44
#7262 - Dr. B / @DrFanB

08/04/2023 at 03:40PM

44
#7263 - Badita Marin-Georgian / @GeorgianBadita

11/26/2024 at 10:57PM

45
#7264 - Harshavardhan Kittur / @hbk1517

09/19/2015 at 09:39PM

45
#7265 - K Aravind Kumar / @ezbi_124

02/06/2016 at 12:17PM

45
#7266 - Mike Ennen / @brcolow

05/02/2016 at 04:41AM

45
#7267 - Walter Mottinelli / @wmotti

07/26/2016 at 02:05PM

45
#7268 - Brice Bathel / @test_brice

01/03/2017 at 10:14PM

45
#7269 - Maciek Wątroba / @maciekbb

04/06/2017 at 12:44PM

45
#7270 - Damien Cosset / @DamCosset

04/21/2017 at 03:10PM

45
#7271 - Jonathan Letham / @JonathanLetham

09/19/2017 at 08:47AM

45
#7272 - hansameel / @HansAmeel

04/14/2018 at 12:53PM

45
#7273 - Stanislas Brossette / @stanbroceth

05/03/2018 at 02:48PM

45
#7274 - Piotr Gospodarek / @PiotrGospodarek

06/07/2018 at 06:10PM

45
#7275 - Joseph 용호 Kwon / @josephkwon0

07/09/2018 at 01:59AM

45
#7276 - Elliot Harik / @ElliotHarik

08/25/2018 at 12:59AM

45
#7277 - Connor Kirkpatrick / @ConnorKP

02/16/2019 at 08:49AM

45
#7278 - Sean Curtis / @SeanPCurtis

04/24/2019 at 10:58PM

45
#7279 - Kyle Derosha / @KyleDerosha

12/05/2019 at 09:22PM

45
#7280 - sunny / @pooisonner

05/27/2020 at 06:40AM

45
#7281 - ysw505 / @ysw505

01/09/2024 at 12:47AM

45
#7282 - Saharsh-R / @Saharsh-R

05/27/2024 at 11:10AM

46
#7283 - Tareq Fadel / @DeltaWorld

06/09/2016 at 12:49PM

46
#7284 - Dorian C. Brown / @DorianCBrwn

08/30/2016 at 05:44AM

46
#7285 - Dezmand Oliveira / @DezmandOliveira

12/11/2016 at 04:37PM

46
#7286 - Jessie Daubner / @jessdaubner

02/06/2017 at 02:40AM

46
#7287 - nobodyzxc / @nobodyzxc1

02/17/2017 at 01:46AM

46
#7288 - Vincent Le / @Vinnyoodles

07/02/2017 at 03:47AM

46
#7289 - OutLawCity / @th3b1rd1sth3w02

07/11/2017 at 02:30AM

46
#7290 - Luc Zwanenberg / @luc_zwanenberg

07/19/2018 at 01:48PM