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

7077 active golfers, 32086 entries

Leaderboard (lowest score wins):
51
#6991 - Sam / @thecoolkingsam

04/26/2017 at 08:09PM

51
#6992 - Lucas / @luc_4d

10/04/2017 at 09:59AM

51
#6993 - yosssi / @yosssi2000

11/24/2017 at 08:07AM

51
#6994 - 钟昌源 / @zcy_perio

03/29/2018 at 07:41AM

51
#6995 - William I. Olojede / @williamolojede

05/27/2018 at 10:16AM

51
#6996 - Vuong Tran / @VuongTran12

07/26/2018 at 09:35AM

51
#6997 - Justin / @tintinthong

05/13/2019 at 09:12AM

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

03/25/2020 at 09:02PM

51
#6999 - Ⓜ️ohit Garg / @_mohitgarg

11/30/2020 at 07:38PM

52
#7000 - Josh Wang / @joshux321

11/15/2015 at 03:53AM

52
#7001 - roylee / @roylee0704

05/05/2017 at 06:56PM

52
#7002 - Michelle [Fenda] / @shelltrme

11/06/2017 at 12:08AM

52
#7003 - Jason Alden / @Njalden1

12/31/2017 at 04:01AM

52
#7004 - lvinhas / @lvinhas1

11/04/2018 at 03:56AM

52
#7005 - Mohamed El Jemai / @linux_tar_gz

11/29/2018 at 10:15AM

52
#7006 - Rudolf Scherman / @rudolf_scherman

06/12/2020 at 08:50AM

53
#7007 - dby / @el_dby

11/28/2016 at 01:29AM

53
#7008 - Sukritpol Saeneewong / @Sukritpol

12/28/2017 at 11:43AM

53
#7009 - lf123 / @qwwsaa123

09/12/2018 at 01:04AM

53
#7010 - stephanebiolley / @biobio31

09/26/2018 at 09:45AM

53
#7011 - Allison Wang / @Drawwinng

10/29/2018 at 01:00AM

53
#7012 - Kishou Yusa / @YusaKishou

07/18/2019 at 04:44AM

53
#7013 - Anuvrat Singh / @SinghAnuvrat

08/23/2020 at 03:52AM

54
#7014 - gosharplite / @gosharplite

04/24/2017 at 06:07AM

54
#7015 - Chris Wong / @ChrisWongNHS

08/19/2018 at 08:19AM

54
#7016 - Daniel Snitkovskiy / @DSnitkovskiy

04/07/2019 at 06:30AM

54
#7017 - Sina Karimi / @creamycode

05/07/2019 at 12:22PM

54
#7018 - Daming Lu / @Daming_Lu

11/13/2019 at 07:48PM

54
#7019 - 13tricks / @13tricks1

02/29/2020 at 06:05PM

54
#7020 - Adrien Guillement / @AdrienGuillem

08/06/2020 at 11:46AM