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
#1111 - Jan Chwiejczak / @iamjanhak

10/22/2017 at 12:02AM

22
#1112 - じごくのたまねぎ / @namasutedesyo

10/23/2017 at 01:47PM

22
#1113 - Cynical Exorcyst / @CynicalExorcyst

10/23/2017 at 04:41PM

22
#1114 - Timothy Ngo / @SlimScripty

10/24/2017 at 03:55AM

22
#1115 - Florian Kluck / @KluckF

10/24/2017 at 05:54PM

22
#1116 - Vim Golf / @golf_vim

10/26/2017 at 01:46AM

22
#1117 - Zoltan Both / @bothzoli

10/28/2017 at 07:28AM

22
#1118 - chriscr / @chriscr_cr

10/30/2017 at 10:05PM

22
#1119 - MathijsHoogland / @MathijsHoogland

11/01/2017 at 03:34PM

22
#1120 - Adrián / @adrDBh

11/02/2017 at 05:35AM

22
#1121 - budavari / @budavari

11/03/2017 at 07:48PM

22
#1122 - Sergii Bondariev / @sergii_bond

11/03/2017 at 11:12PM

22
#1123 - ryuugekisya / @ryuugekisya

11/04/2017 at 12:53AM

22
#1124 - Turkey Man / @lvturkeyman

11/07/2017 at 06:40AM

22
#1125 - Kim Hwa Joong / @hanmwoi

11/07/2017 at 03:37PM

22
#1126 - Adam Silkey / @Dooflegna

11/07/2017 at 06:58PM

22
#1127 - OPChrom / @OPChrom

11/09/2017 at 03:31PM

22
#1128 - Juuso Valkeejärvi / @jussovalk

11/10/2017 at 08:14PM

22
#1129 - Andrey Serkin / @cerk1n

11/12/2017 at 02:13PM

22
#1130 - Ad Infinitum / @Ad_Inifinitum

11/13/2017 at 05:32AM

22
#1131 - Benoit Mortgat / @Benoit_Mortgat

11/13/2017 at 04:12PM

22
#1132 - BobbyLapointe / @BobbyLapointe7

11/13/2017 at 04:43PM

22
#1133 - Mihai / @mihaicristiant

11/13/2017 at 06:09PM

22
#1134 - Jonathan Johnson / @jonmarkjohnson

11/13/2017 at 06:42PM

22
#1135 - oops / @oopserror404

11/15/2017 at 02:16PM

22
#1136 - Luis Pigueiras / @LPigueiras

11/16/2017 at 12:30PM

22
#1137 - r8923vqnu89wcnar / @r8923vqnu89wcn1

11/16/2017 at 12:31PM

22
#1138 - Asmund / @herrasbe

11/17/2017 at 11:51AM

22
#1139 - Ala Hu / @alahu101

11/17/2017 at 07:40PM

22
#1140 - manos koustelakis / @KoutsManos

11/18/2017 at 12:40AM