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

5381 active golfers, 24024 entries

Leaderboard (lowest score wins):
22
#481 - Frederik Jerløv / @fjerlv

05/02/2016 at 08:57AM

22
#482 - Eero-Antero Säisä / @jakolasku

05/02/2016 at 01:42PM

22
#483 - Luke Powell / @luxgladius

05/02/2016 at 02:06PM

22
#484 - Pete Gadomski / @petegadomski

05/02/2016 at 02:06PM

22
#485 - Robert Bittle / @guywithnose

05/02/2016 at 02:28PM

22
#486 - Rathrio / @Rathrio

05/02/2016 at 08:39PM

22
#487 - John Goes / @johnwgoes

05/02/2016 at 10:21PM

22
#488 - Nate Cornell / @NateCornell

05/02/2016 at 10:43PM

22
#489 - Nico Casar Gonzalez / @gznicolas

05/02/2016 at 10:44PM

22
#490 - Yudi Matsuzake / @yudimatsuzake

05/03/2016 at 02:39AM

22
#491 - Sergio L. Montolio / @sergiomontolio

05/03/2016 at 11:31PM

22
#492 - Darren Tsung / @darrentsung

05/04/2016 at 12:34AM

22
#493 - alex / @4lex

05/04/2016 at 01:48AM

22
#494 - Eric Wannemacher / @ericwannemacher

05/04/2016 at 01:57AM

22
#495 - Sebastián Mancilla / @smancill_m

05/04/2016 at 03:38AM

22
#496 - Giovanni Lagorio / @zxgio

05/04/2016 at 09:46AM

22
#497 - matthieu le grix / @mlegrix

05/04/2016 at 05:40PM

22
#498 - Peter Brooks / @pbrooks_uk

05/06/2016 at 02:17PM

22
#499 - Vikhyat Korrapati / @vikhyatk

05/07/2016 at 11:37AM

22
#500 - Clay Ratliff / @MulitfariousGuy

05/08/2016 at 06:03PM

22
#501 - Rob Ert / @robrunner888

05/08/2016 at 06:07PM

22
#502 - Nico Gevers / @gevious_

05/08/2016 at 06:12PM

22
#503 - よっぴぃ / @yoppynmhs

05/09/2016 at 03:05AM

22
#504 - Nicolás Alvarez / @nicoa_bb_ba_ar

05/09/2016 at 03:16AM

22
#505 - David / @david_hemminger

05/11/2016 at 12:07AM

22
#506 - Derrick Cohodas / @DerrickCohodas

05/11/2016 at 07:48AM

22
#507 - imlinder / @imLinder

05/11/2016 at 10:16AM

22
#508 - Atrament / @Atrament

05/11/2016 at 02:04PM

22
#509 - Vivek Bose / @Strangelich

05/11/2016 at 03:50PM

22
#510 - Patrick Knosowski / @KnoP8024

05/11/2016 at 09:30PM