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

Leaderboard (lowest score wins):
22
#1501 - Julius / @cShortForC

10/24/2018 at 07:02PM

22
#1502 - zaperrer / @zaperrer

10/24/2018 at 10:22PM

22
#1503 - Jo / @Jo59893132

10/25/2018 at 04:37AM

22
#1504 - Maxim Kim / @mxmkm

10/25/2018 at 08:54AM

22
#1505 - Will / @SirAero

10/25/2018 at 05:26PM

22
#1506 - Finn Francis / @FinnFrancis

10/26/2018 at 07:31PM

22
#1507 - Tri Cao / @TriCao19

10/27/2018 at 01:09AM

22
#1508 - Ole Mussmann / @isbjornlabs

10/27/2018 at 10:37PM

22
#1509 - Jeremy / @jcowgar

10/28/2018 at 05:13AM

22
#1510 - Bashar Jaan Khan / @basharjaankhan

10/28/2018 at 08:52AM

22
#1511 - ary31415 / @ary31415

10/29/2018 at 07:43AM

22
#1512 - Omar / @ombako

10/29/2018 at 12:51PM

22
#1513 - Andre Cato / @DreBear800

10/30/2018 at 01:09AM

22
#1514 - jyloup / @jyloup

10/30/2018 at 04:46PM

22
#1515 - Constant Bridon / @c0b_b0y

10/31/2018 at 10:28AM

22
#1516 - JulianW / @JulianWgs

10/31/2018 at 07:12PM

22
#1517 - Lapin Max / @LapinMaxm

10/31/2018 at 08:20PM

22
#1518 - Kenny / @zumalifeguard

11/01/2018 at 02:37AM

22
#1519 - Emile Swarts / @EmileSwarts

11/02/2018 at 03:10PM

22
#1520 - David Capper / @DavidMCapper

11/02/2018 at 04:19PM

22
#1521 - Zacky Su / @zackykuangkuang

11/04/2018 at 10:12AM

22
#1522 - rye bread / @theryangeary

11/05/2018 at 10:04PM

22
#1523 - faraazkhan / @mfyk84

11/06/2018 at 06:03AM

22
#1524 - Birger / @Blautkak

11/06/2018 at 10:26PM

22
#1525 - Why Am / @WhysDeCatOnFire

11/07/2018 at 03:41AM

22
#1526 - Wouter Horlings / @Achilleshiel

11/08/2018 at 12:36PM

22
#1527 - ForVimGolfReally / @VimFor

11/08/2018 at 11:09PM

22
#1528 - Sando Itchi / @sando_itchi

11/09/2018 at 03:40AM

22
#1529 - Jason Wieringa / @jwieringa

11/09/2018 at 04:38AM

22
#1530 - あすたちん / @astatine0x55

11/09/2018 at 05:28AM