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, 30704 entries

Leaderboard (lowest score wins):
22
#2191 - Lucas Moon / @LucasMo01299826

07/06/2020 at 02:52PM

22
#2192 - PeiYingLiu / @PeiYing_Liu

07/07/2020 at 06:59AM

22
#2193 - Ángel Durán / @AngeeelD

07/08/2020 at 04:18AM

22
#2194 - PK / @pkeugine

07/10/2020 at 06:23AM

22
#2195 - Adrián Delgado / @Caritativito

07/11/2020 at 11:58PM

22
#2196 - Vital Wang / @wang_vital

07/12/2020 at 05:27PM

22
#2197 - Dmitry Branitskiy / @b1azer

07/14/2020 at 04:21AM

22
#2198 - Eric Link / @elink_tx

07/15/2020 at 07:44PM

22
#2199 - mp / @mp28812322

07/17/2020 at 03:19PM

22
#2200 - Ryan Brewer / @ryanbrwr

07/18/2020 at 03:14AM

22
#2201 - JL T / @l0f4r0

07/19/2020 at 05:38PM

22
#2202 - Jason / @jason_eveleth

07/22/2020 at 12:45PM

22
#2203 - Andy Yang / @yzwdroid

07/24/2020 at 04:34AM

22
#2204 - Kim Bäckström / @Norttiiii

07/25/2020 at 08:36AM

22
#2205 - Coded / @coded_nz

07/26/2020 at 01:17AM

22
#2206 - Chris Thompson / @ctmusicnz

07/26/2020 at 01:33AM

22
#2207 - Artur Dumchev / @Liverm0r

07/26/2020 at 11:04AM

22
#2208 - n7 / @n7_nc

07/28/2020 at 04:08PM

22
#2209 - VQvMoKsy / @QvKsy

07/29/2020 at 08:20AM

22
#2210 - Till Straube / @tillstr

07/29/2020 at 09:19AM

22
#2211 - Sam Houston / @shouston33

07/29/2020 at 10:27PM

22
#2212 - Olle Wiklund / @Kabix

07/30/2020 at 01:52PM

22
#2213 - Rustem B. / @_rustemb

07/31/2020 at 01:00AM

22
#2214 - しょーじ / @shoji_4423

07/31/2020 at 04:03AM

22
#2215 - Steve Frost / @FrostSteveFrost

08/01/2020 at 03:37PM

22
#2216 - Xaver Fleer / @XaverFleer

08/02/2020 at 11:01PM

23
#2217 - fantome / @fantome84

07/24/2015 at 01:55PM

23
#2218 - ryk / @rykarn

07/24/2015 at 08:15PM

23
#2219 - McKay Ward / @mckayward

07/25/2015 at 08:32PM

23
#2220 - Matthew / @magee210

07/27/2015 at 11:38PM