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

6059 active golfers, 27223 entries

Leaderboard (lowest score wins):
49
#5971 - Youngwoong Choi / @byrage91

01/04/2017 at 05:09AM

49
#5972 - Michael Bylstra / @mbylstra

09/17/2017 at 01:22AM

49
#5973 - Emmanuel Fuentes / @manufuents

11/20/2017 at 10:09PM

49
#5974 - skamelone / @skamelone

10/01/2018 at 07:46PM

49
#5975 - Santiago Weight / @SantiagoWeight

02/28/2019 at 10:58AM

49
#5976 - Johnny Wang / @johnnykwwang

04/28/2019 at 11:36PM

50
#5977 - Frank.C / @Zeronance

09/03/2016 at 08:54AM

50
#5978 - Adam Kożuch / @adamkozuch

04/02/2017 at 10:43AM

50
#5979 - andrea_codes / @andrealobster

07/05/2017 at 07:41AM

50
#5980 - なかの / @Nemu_Le0ne

11/20/2017 at 08:49AM

50
#5981 - Ralf Beine / @clashtheweb

08/31/2018 at 01:51PM

50
#5982 - Ivan Diachenko / @IvanDiachenko

09/08/2018 at 04:06PM

50
#5983 - MikuQB / @MikuQB

05/08/2019 at 04:03PM

51
#5984 - Sam / @thecoolkingsam

04/26/2017 at 08:09PM

51
#5985 - Lucas / @luc_4d

10/04/2017 at 09:59AM

51
#5986 - yosssi / @yosssi2000

11/24/2017 at 08:07AM

51
#5987 - 钟昌源 / @zcy_perio

03/29/2018 at 07:41AM

51
#5988 - William I. Olojede / @williamolojede

05/27/2018 at 10:16AM

51
#5989 - Vuong Tran / @VuongTran12

07/26/2018 at 09:35AM

51
#5990 - Justin / @tintinthong

05/13/2019 at 09:12AM

52
#5991 - Josh Wang / @joshux321

11/15/2015 at 03:53AM

52
#5992 - roylee / @roylee0704

05/05/2017 at 06:56PM

52
#5993 - Michelle [Fenda] / @shelltrme

11/06/2017 at 12:08AM

52
#5994 - Jason Alden / @Njalden1

12/31/2017 at 04:01AM

52
#5995 - lvinhas / @lvinhas1

11/04/2018 at 03:56AM

52
#5996 - Mohamed El Jemai / @linux_tar_gz

11/29/2018 at 10:15AM

53
#5997 - dby / @el_dby

11/28/2016 at 01:29AM

53
#5998 - Sukritpol Saeneewong / @Sukritpol

12/28/2017 at 11:43AM

53
#5999 - lf123 / @qwwsaa123

09/12/2018 at 01:04AM

53
#6000 - stephanebiolley / @biobio31

09/26/2018 at 09:45AM