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

6723 active golfers, 30370 entries

Leaderboard (lowest score wins):
34
#5791 - Samidhya Sarker / @desertSniper87

09/06/2018 at 12:32PM

34
#5792 - nick / @Xp_Bar

09/12/2018 at 02:55AM

34
#5793 - konankun / @__konankun

09/17/2018 at 03:22PM

34
#5794 - Simone Aonzo / @packm4d

10/01/2018 at 12:10PM

34
#5795 - しゅう / @shu22204

10/16/2018 at 04:36PM

34
#5796 - Diego Villacís / @diegovillacis10

10/18/2018 at 09:32AM

34
#5797 - Anton Permenev / @a_permenev

10/29/2018 at 04:24PM

34
#5798 - /home/ck / @_CarlKenny

11/12/2018 at 01:29AM

34
#5799 - Joiey Seeley / @jseeley

11/12/2018 at 07:02PM

34
#5800 - Jurica / @Jurica34581259

11/14/2018 at 11:01PM

34
#5801 - Tyler / @RaspberryTy

11/21/2018 at 09:53AM

34
#5802 - Kevin / @firedhippy

11/29/2018 at 03:27AM

34
#5803 - Lee / @Lee94318158

11/29/2018 at 03:52PM

34
#5804 - Peter Stein / @realPeterStein

12/10/2018 at 12:46AM

34
#5805 - drednaut / @By7e0B1ts

12/22/2018 at 08:49PM

34
#5806 - Dennis Schneider / @Schneiderleiin

12/25/2018 at 04:04PM

34
#5807 - amitay drummer / @amitay87

12/25/2018 at 07:23PM

34
#5808 - leviathan / @leviathan_alpha

01/04/2019 at 10:13AM

34
#5809 - Ján Mochňak / @janmochnak

01/27/2019 at 07:44PM

34
#5810 - ¯\_(ツ)_/¯ / @2fakethentic

02/04/2019 at 10:06PM

34
#5811 - Жажа / @Gagarin_X

02/08/2019 at 01:15PM

34
#5812 - Tyrel Cameron / @TyrelCameron

02/12/2019 at 12:33AM

34
#5813 - J0urn3y / @J0urn3y22

02/18/2019 at 07:39PM

34
#5814 - Maarten Staa / @SeriousSpoon

02/27/2019 at 01:03PM

34
#5815 - Marco Cárdenas / @mgtcardenas

03/09/2019 at 06:46PM

34
#5816 - tomjackbear / @tomjackbear

03/11/2019 at 01:45AM

34
#5817 - Michael Schreier / @micha_scr

03/15/2019 at 07:45AM

34
#5818 - とおやまただし / @toyama_tadashi

03/19/2019 at 03:46AM

34
#5819 - BernBe / @BernBe8

03/30/2019 at 04:34PM

34
#5820 - timothy weary / @fyrabanks

04/06/2019 at 09:41AM