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

6058 active golfers, 27222 entries

Leaderboard (lowest score wins):
35
#5341 - Nate Smith / @nwjsmith

09/21/2016 at 06:52PM

35
#5342 - cdrinion / @cdrinion

09/25/2016 at 03:05PM

35
#5343 - Paulo Coelho Alves / @sunlandictwin

09/27/2016 at 12:03PM

35
#5344 - Kyoungchin Seo(서경진) / @jiniseo

10/17/2016 at 01:06PM

35
#5345 - Danny / @dannywood1976

11/25/2016 at 08:00PM

35
#5346 - linovys / @linovys

12/04/2016 at 11:11PM

35
#5347 - Robin Kanters / @RobinKanters

12/07/2016 at 03:26PM

35
#5348 - 白猫(zhu) / @cat2flower

12/15/2016 at 09:55AM

35
#5349 - Тимофей Федянин / @tim06ka

12/18/2016 at 09:40AM

35
#5350 - Alex Moorman / @dabearsxander

01/05/2017 at 11:27PM

35
#5351 - Chris Hughes / @ChristofHughes

01/15/2017 at 08:14PM

35
#5352 - Maciej Mionskowski / @maciekmm_

02/22/2017 at 11:28AM

35
#5353 - Shreyas / @shreyasjag

03/02/2017 at 08:19PM

35
#5354 - Ben Moss / @mossity

04/06/2017 at 09:26PM

35
#5355 - Summer Dhwoj Acharya / @techgaun

04/19/2017 at 05:59PM

35
#5356 - William Zmiyewski / @zmwilliam

04/21/2017 at 01:45PM

35
#5357 - Thor 🖋💾 / @thorerik

04/25/2017 at 10:37AM

35
#5358 - Kaitlyn 🌹 Tierney / @krtierney

04/26/2017 at 06:45PM

35
#5359 - Nicolás Salas V. / @nicosalasv

05/12/2017 at 06:20AM

35
#5360 - siwa / @siwabada

06/04/2017 at 12:32AM

35
#5361 - Joseph Abell / @GerbilsInSpace

06/04/2017 at 10:31PM

35
#5362 - Adam Bozanich / @abozanich

06/07/2017 at 11:33PM

35
#5363 - Frozen Voice / @FrozenVoice

06/16/2017 at 12:41AM

35
#5364 - Fetiorin / @Fetiorin

06/29/2017 at 05:11AM

35
#5365 - Hendry Sadrak / @hendrysadrak

07/14/2017 at 09:53AM

35
#5366 - Jarrod Rotolo / @jerryg311

07/28/2017 at 10:06PM

35
#5367 - Adam Matan / @adam_matan

07/31/2017 at 04:23PM

35
#5368 - Vasily Novikov / @helensw06796314

08/07/2017 at 05:12PM

35
#5369 - Calvin / @qiCalvin

08/15/2017 at 08:38PM

35
#5370 - (((M Litherland))) / @mike_litherland

08/25/2017 at 07:00PM