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):
50
#7351 - Ivan Diachenko / @IvanDiachenko

09/08/2018 at 04:06PM

50
#7352 - MikuQB / @MikuQB

05/08/2019 at 04:03PM

50
#7353 - rofycrofs / @rofycrofs1

10/04/2020 at 06:24PM

50
#7354 - Nathan Vaubien / @natevaub

08/07/2024 at 11:46PM

50
#7355 - Vinsmoke Sanji / @manlore11

04/27/2025 at 06:54AM

51
#7356 - Sam / @thecoolkingsam

04/26/2017 at 08:09PM

51
#7357 - Lucas / @luc_4d

10/04/2017 at 09:59AM

51
#7358 - yosssi / @yosssi2000

11/24/2017 at 08:07AM

51
#7359 - 钟昌源 / @zcy_perio

03/29/2018 at 07:41AM

51
#7360 - William I. Olojede / @williamolojede

05/27/2018 at 10:16AM

51
#7361 - Vuong Tran / @VuongTran12

07/26/2018 at 09:35AM

51
#7362 - Justin / @tintinthong

05/13/2019 at 09:12AM

51
#7363 - Tyler W. A. Bradshaw / @twabshaw

03/25/2020 at 09:02PM

51
#7364 - Mohit Garg / @_mohitgarg

11/30/2020 at 07:38PM

52
#7365 - Josh Wang / @joshux321

11/15/2015 at 03:53AM

52
#7366 - roylee / @roylee0704

05/05/2017 at 06:56PM

52
#7367 - Michelle [Fenda] / @shelltrme

11/06/2017 at 12:08AM

52
#7368 - Jason Alden / @Njalden1

12/31/2017 at 04:01AM

52
#7369 - lvinhas / @lvinhas1

11/04/2018 at 03:56AM

52
#7370 - Mohamed El Jemai / @linux_tar_gz

11/29/2018 at 10:15AM

52
#7371 - Rudolf Scherman / @rudolf_scherman

06/12/2020 at 08:50AM

53
#7372 - dby / @el_dby

11/28/2016 at 01:29AM

53
#7373 - Sukritpol Saeneewong / @Sukritpol

12/28/2017 at 11:43AM

53
#7374 - lf123 / @qwwsaa123

09/12/2018 at 01:04AM

53
#7375 - stephanebiolley / @biobio31

09/26/2018 at 09:45AM

53
#7376 - Allison Wang / @Drawwinng

10/29/2018 at 01:00AM

53
#7377 - Kishou Yusa / @YusaKishou

07/18/2019 at 04:44AM

53
#7378 - Anuvrat Singh / @SinghAnuvrat

08/23/2020 at 03:52AM

53
#7379 - Snazzy Sanoj / @snazzysanoj

12/17/2020 at 10:41AM

54
#7380 - gosharplite / @gosharplite

04/24/2017 at 06:07AM