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

5954 active golfers, 26713 entries

Leaderboard (lowest score wins):
22
#1141 - Jared Sackett / @SacmanXMan2

11/20/2017 at 05:30AM

22
#1142 - Paul Bunch / @gigatesla

11/20/2017 at 08:21PM

22
#1143 - Ondřej Hlavatý / @Aearsis

11/21/2017 at 03:09PM

22
#1144 - test / @_test_acc_

11/23/2017 at 09:20AM

22
#1145 - Chasetopher / @chasetopherlee

11/23/2017 at 10:42AM

22
#1146 - Oscar🐊 / @GraveRaven

11/29/2017 at 07:52PM

22
#1147 - Christophe Robillard / @krichtof

11/29/2017 at 10:54PM

22
#1148 - Andrew Lees / @amlees8

11/30/2017 at 01:30AM

22
#1149 - Brian Zeng / @thebrianzeng

11/30/2017 at 08:20AM

22
#1150 - Eric Liao / @rcliaodev

12/01/2017 at 07:31AM

22
#1151 - Mark Pitcher / @I_Polaroid

12/01/2017 at 01:57PM

22
#1152 - ところたん / @tokoro10g

12/02/2017 at 05:18PM

22
#1153 - Joachim Wedin / @joachim_wedin

12/02/2017 at 11:43PM

22
#1154 - Prithviraj Patil / @dummyprithviraj

12/03/2017 at 11:43AM

22
#1155 - Alan Zimmerman / @alan_zimm

12/03/2017 at 02:08PM

22
#1156 - AP_Nefer / @AP_Nefer

12/04/2017 at 04:21AM

22
#1157 - David / @Revan4Vendetta

12/04/2017 at 08:55AM

22
#1158 - Pereant osores / @viniciusxp

12/04/2017 at 01:26PM

22
#1159 - NieDżejkob / @NieDzejkob

12/04/2017 at 03:44PM

22
#1160 - Thomas Barusseau / @ThomasBarusseau

12/06/2017 at 03:40PM

22
#1161 - Per Forser / @perforcer

12/06/2017 at 09:51PM

22
#1162 - Ike Y / @iyku

12/07/2017 at 12:47AM

22
#1163 - eiladin / @eiladin

12/07/2017 at 03:41PM

22
#1164 - Henrique Malheiro / @rike09

12/08/2017 at 03:21AM

22
#1165 - uodna / @dna0u

12/08/2017 at 01:01PM

22
#1166 - Shun Ohkubo / @kijiuch

12/08/2017 at 01:02PM

22
#1167 - ふぉーて / @fohte

12/08/2017 at 01:03PM

22
#1168 - Edward / @GLineEdward

12/09/2017 at 09:04AM

22
#1169 - daikiOka / @OdsOka

12/12/2017 at 05:43AM

22
#1170 - Pause / @follymetric

12/14/2017 at 06:03PM