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
#181 - Edgar Hipp / @EdgarHipp

10/25/2015 at 09:30AM

22
#182 - Jacob Steffler / @jacobsteffler

10/25/2015 at 07:00PM

22
#183 - Joe Ruder / @joeruder42

10/25/2015 at 07:21PM

22
#184 - Ala' Ibrahim / @alaa_ibrahim

10/26/2015 at 03:05AM

22
#185 - Maple / @MapleStage

10/26/2015 at 09:21AM

22
#186 - esssssssssssssssssss / @h1702662

10/26/2015 at 10:46AM

22
#187 - Joe / @joeuk89

10/26/2015 at 05:31PM

22
#188 - Paul Hornsey / @MadDogNinja

10/27/2015 at 12:14AM

22
#189 - Joe DeCock / @jmdc

10/27/2015 at 01:42AM

22
#190 - Justin Sermeno / @justinsermeno

10/29/2015 at 03:12AM

22
#191 - Eduardo / @earada

10/29/2015 at 12:20PM

22
#192 - Árpád Krejczinger / @krarpi

10/30/2015 at 11:54AM

22
#193 - lyubarskiy / @lyubarskiy

10/31/2015 at 12:12PM

22
#194 - Jonas Nockert / @lemonad

10/31/2015 at 08:57PM

22
#195 - Jacob Hanshaw / @nomadjacob

11/02/2015 at 06:26AM

22
#196 - herbage / @herbage2

11/02/2015 at 03:13PM

22
#197 - Faat / @i_faat

11/03/2015 at 05:46PM

22
#198 - Rodrigo Ponce de León / @rponce_89

11/05/2015 at 08:59PM

22
#199 - Sam Kim / @samkimhis

11/06/2015 at 04:03AM

22
#200 - NuM / @NuM314

11/07/2015 at 09:57AM

22
#201 - Marshall Croes / @marshallcroes

11/07/2015 at 11:48PM

22
#202 - The Dimalisher / @zeppelinnn

11/08/2015 at 07:14AM

22
#203 - Robert Goeddel / @f0rdpr3fect

11/09/2015 at 09:15PM

22
#204 - Aaron Mininger / @AMininger

11/09/2015 at 09:59PM

22
#205 - Curt Matz / @sitrucz

11/10/2015 at 07:39PM

22
#206 - Hermit McDermot / @hermit_mcdermot

11/11/2015 at 11:24AM

22
#207 - Phil Ting / @philipjting

11/12/2015 at 06:23AM

22
#208 - David Mauskop / @mauskop

11/12/2015 at 07:22PM

22
#209 - Jonathan Lao-Kan / @jlaokan

11/12/2015 at 08:19PM

22
#210 - Lukas Froehlich / @lukasfroehlich

11/12/2015 at 10:54PM