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 5124 remaining solutions by signing in and submitting your own entry
#5125 KEBE Abdou Bigue / @KebeBigue - Score: 359 - 11/14/18 @ 11:15
jjjjjj<Esc>itemp var7<BS><BS><BS><BS><BS><BS><BS><BS><BS>*T<BS>temp var7 11j<BS><Esc>jj<Esc>iNex<BS>w text.k<BS><Esc>kkmllllll<CR><CR>kkllllllllllllluuU<Up><Up><Up><Down><Esc>I<Esc>I*T<BS>temp var7 11<Esc>jj<Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc>iNex<BS>w text.<Esc>kkllll<Esc>io<BS><Esc>llo<Esc>jjkjkllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllloj<BS><Esc>jllllllllloh<BS><Esc>h:Q<BS>wq<CR>

0 comments


Created by: @Flurrywinde

5125 active golfers, 22710 entries

Leaderboard (lowest score wins):
22
#211 - Jacob Steffler / @jacobsteffler

10/25/2015 at 07:00PM

22
#212 - Joe Ruder / @joeruder42

10/25/2015 at 07:21PM

22
#213 - Ala' Ibrahim / @alaa_ibrahim

10/26/2015 at 03:05AM

22
#214 - Maple / @MapleStage

10/26/2015 at 09:21AM

22
#215 - esssssssssssssssssss / @h1702662

10/26/2015 at 10:46AM

22
#216 - Joe / @joeuk89

10/26/2015 at 05:31PM

22
#217 - Paul Hornsey / @MadDogNinja

10/27/2015 at 12:14AM

22
#218 - Joe DeCock / @jmdc

10/27/2015 at 01:42AM

22
#219 - Justin Sermeno / @justinsermeno

10/29/2015 at 03:12AM

22
#220 - Eduardo / @earada

10/29/2015 at 12:20PM

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

10/30/2015 at 11:54AM

22
#222 - lyubarskiy / @lyubarskiy

10/31/2015 at 12:12PM

22
#223 - Jonas Nockert / @lemonad

10/31/2015 at 08:57PM

22
#224 - Jacob Hanshaw / @nomadjacob

11/02/2015 at 06:26AM

22
#225 - herbage / @herbage2

11/02/2015 at 03:13PM

22
#226 - Faat / @i_faat

11/03/2015 at 05:46PM

22
#227 - Rodrigo Ponce d León / @rponce_89

11/05/2015 at 08:59PM

22
#228 - Sam Kim / @samkimhis

11/06/2015 at 04:03AM

22
#229 - NuM / @NuM314

11/07/2015 at 09:57AM

22
#230 - Marshall Croes / @marshallcroes

11/07/2015 at 11:48PM

22
#231 - The Dimalisher / @zeppelinnn

11/08/2015 at 07:14AM

22
#232 - Robert Goeddel / @f0rdpr3fect

11/09/2015 at 09:15PM

22
#233 - Aaron Mininger / @AMininger

11/09/2015 at 09:59PM

22
#234 - Curt Matz / @sitrucz

11/10/2015 at 07:39PM

22
#235 - kris / @0xkrp

11/11/2015 at 11:24AM

22
#236 - Phil Ting / @philipjting

11/12/2015 at 06:23AM

22
#237 - David Mauskop / @mauskop

11/12/2015 at 07:22PM

22
#238 - Jonathan Lao-Kan / @jlaokan

11/12/2015 at 08:19PM

22
#239 - Lukas Froehlich / @lukasfroehlich

11/12/2015 at 10:54PM

22
#240 - かんじ / @CENT_SIGMA

11/13/2015 at 05:03AM