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

6784 active golfers, 30703 entries

Leaderboard (lowest score wins):
35
#6091 - Christopher Kolstad / @chriswk

03/11/2020 at 07:55AM

35
#6092 - Agustino Thadeus / @agustinothadeus

03/26/2020 at 09:25PM

35
#6093 - I Use Arch / @arch_use

04/03/2020 at 09:39AM

35
#6094 - Nick Lee / @TooManyNickLees

04/04/2020 at 03:35PM

35
#6095 - Martin Nordgren / @MartinJNordgren

04/06/2020 at 11:05AM

35
#6096 - vimmer / @vimmer14

04/15/2020 at 02:13PM

35
#6097 - Elias Al-Tai / @EliasAltai

04/21/2020 at 04:55PM

35
#6098 - myvimgolf / @myvimgolf

05/01/2020 at 03:20PM

35
#6099 - x / @am_zzz_zzz

05/11/2020 at 05:21AM

35
#6100 - ☭☭☭☭☭🇧🇷☭☭☭☭☭ / @CoachComunista

05/13/2020 at 11:36PM

35
#6101 - David Cherednik / @david_cherednik

05/22/2020 at 11:36AM

35
#6102 - Yinghan Tan / @YinghanTan

05/30/2020 at 01:22AM

35
#6103 - hoaaangolo / @hoaaangolo

06/07/2020 at 05:55PM

35
#6104 - bichoverde / @bichoverde5

06/25/2020 at 09:17AM

35
#6105 - Pg / @pp5311006

07/09/2020 at 02:29PM

35
#6106 - asdf / @asdf64638747

07/20/2020 at 01:28AM

35
#6107 - James Blanton / @jamespblanton

07/31/2020 at 06:11PM

36
#6108 - Scott Traver / @ScottTraver

07/31/2015 at 03:06PM

36
#6109 - Addison White / @AddisonPWhite

08/08/2015 at 12:10AM

36
#6110 - ooJava / @GitCheckout

08/17/2015 at 12:53AM

36
#6111 - J Andrew McCormick / @jandrewmc

08/18/2015 at 02:51AM

36
#6112 - jaya wijono / @jayzzwijono55

08/19/2015 at 05:21AM

36
#6113 - cognoscibilis / @cognoscibilis

08/21/2015 at 09:27AM

36
#6114 - Sambit Padhi / @sambitpadhi93

10/02/2015 at 09:34AM

36
#6115 - Anindya Sharma / @Sharma_Anindya

10/21/2015 at 04:23PM

36
#6116 - Oser / @thegolfer8

01/01/2016 at 01:02AM

36
#6117 - Vlad Temian ⚒ / @vtemian

01/03/2016 at 11:20PM

36
#6118 - Pedro Franceschi / @pedroh96

01/12/2016 at 08:53PM

36
#6119 - Antonio García / @AntonioGarRod

01/19/2016 at 12:24PM

36
#6120 - James Vaughan / @vaughanj10

01/21/2016 at 05:47PM