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

7425 active golfers, 33647 entries

Leaderboard (lowest score wins):
22
#421 - Tom Harada / @p10q

04/24/2016 at 08:04PM

22
#422 - A. Harry M. / @aharrym

04/25/2016 at 02:59PM

22
#423 - Yann Colina / @YannColina

04/26/2016 at 01:27PM

22
#424 - Thomas Bailey / @cthomasbailey

04/26/2016 at 02:37PM

22
#425 - Håkon Bråten / @h_braten

04/26/2016 at 02:41PM

22
#426 - Simon Pugnet / @polaris64

04/26/2016 at 09:16PM

22
#427 - Aleksandr Pak / @alekspak

04/27/2016 at 07:59PM

22
#428 - Andres Hazard / @andreshazard

04/28/2016 at 03:35AM

22
#429 - Hara ga Hetta / @harahelix

04/28/2016 at 03:56AM

22
#430 - Cristian Lupașcu / @clupasq

04/28/2016 at 09:47AM

22
#431 - Adam Collins / @adc613

04/28/2016 at 07:59PM

22
#432 - Ben Sherman / @bensherman

04/29/2016 at 01:04AM

22
#433 - Hoang Tran / @hoangtx_master

04/29/2016 at 03:22PM

22
#434 - Adam Leach / @qazwsxal

04/29/2016 at 07:39PM

22
#435 - Mikael Saltzman / @MikaelSaltzman

04/29/2016 at 09:45PM

22
#436 - matt_todd / @matt_todd

04/30/2016 at 08:28PM

22
#437 - alkozu / @alkozu

04/30/2016 at 09:15PM

22
#438 - mebubo / @mebubo

05/01/2016 at 12:26PM

22
#439 - Radovan Dražný / @raduzator

05/01/2016 at 06:43PM

22
#440 - Marshall Ward / @marshall_ward

05/02/2016 at 05:42AM

22
#441 - Bob Boberson / @BobersonBob7

05/02/2016 at 08:44AM

22
#442 - Frederik Jerløv / @fjerlv

05/02/2016 at 08:57AM

22
#443 - Eero-Antero Säisä / @jakolasku

05/02/2016 at 01:42PM

22
#444 - Luke Powell / @luxgladius

05/02/2016 at 02:06PM

22
#445 - Pete Gadomski / @petegadomski

05/02/2016 at 02:06PM

22
#446 - Robert Bittle / @guywithnose

05/02/2016 at 02:28PM

22
#447 - Rathrio / @Rathrio

05/02/2016 at 08:39PM

22
#448 - John Goes / @johnwgoes

05/02/2016 at 10:21PM

22
#449 - Nate Cornell / @NateCornell

05/02/2016 at 10:43PM

22
#450 - Nico Casar Gonzalez / @gznicolas

05/02/2016 at 10:44PM