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

7061 active golfers, 32020 entries

Leaderboard (lowest score wins):
22
#2161 - Simon Wydooghe / @simonwydooghe

06/09/2020 at 08:19PM

22
#2162 - jc52766 / @jc52766

06/11/2020 at 06:47AM

22
#2163 - Hogo / @HogoBlog

06/11/2020 at 04:34PM

22
#2164 - Jake / @Jake88567157

06/12/2020 at 12:44PM

22
#2165 - loupiot.veloce / @LoupiotVeloce

06/15/2020 at 12:10PM

22
#2166 - Lakshitha Wijesinghe / @lakshithaww

06/17/2020 at 10:06PM

22
#2167 - dirkrob / @dirkrob1

06/18/2020 at 03:02AM

22
#2168 - Ben Mayoras / @Mayorasaurus

06/18/2020 at 08:18PM

22
#2169 - もりを / @morio_prog

06/19/2020 at 06:03AM

22
#2170 - lqkem3 / @lqkem31

06/19/2020 at 08:04AM

22
#2171 - Ian Partridge / @alfa

06/19/2020 at 07:58PM

22
#2172 - Matthew Diamant / @matthewdiamant

06/20/2020 at 08:24AM

22
#2173 - eliasrg / @eliasrg16

06/24/2020 at 01:12AM

22
#2174 - Will / @WillTakeLe

06/25/2020 at 09:09AM

22
#2175 - James Lowry / @jlowry

06/25/2020 at 11:36AM

22
#2176 - mocihan / @mocihan

06/26/2020 at 09:15AM

22
#2177 - Dan / @nnmnsmmr

06/27/2020 at 06:03PM

22
#2178 - 薛乾明 / @xueqianming200

06/28/2020 at 06:14AM

22
#2179 - Arvid Lunnemark / @ArVID220u

06/28/2020 at 08:46PM

22
#2180 - Mark / @Mark45346316

06/28/2020 at 08:47PM

22
#2181 - 大矢元海 / @008Genkai

06/29/2020 at 04:03AM

22
#2182 - Edgar Domingues / @edgar_domingues

06/30/2020 at 07:06AM

22
#2183 - The Oalrus / @mizay7

06/30/2020 at 07:37PM

22
#2184 - serici / @serici

07/01/2020 at 08:52PM

22
#2185 - Alexandre MERLIN / @AlxMerlin

07/02/2020 at 03:38PM

22
#2186 - SardarJitensha / @SJitensha

07/03/2020 at 08:17AM

22
#2187 - Rishabh Dwivedi / @Rishabh45312910

07/03/2020 at 07:12PM

22
#2188 - Johno / @JohnoPomerat

07/03/2020 at 09:42PM

22
#2189 - Duggan / @CallMeDuggan

07/04/2020 at 12:00AM

22
#2190 - h2g2guy / @h2g2guy

07/05/2020 at 07:38AM