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
#481 - Sergio L. Montolio / @sergiomontolio

05/03/2016 at 11:31PM

22
#482 - Darren Tsung / @darrentsung

05/04/2016 at 12:34AM

22
#483 - alex / @4lex

05/04/2016 at 01:48AM

22
#484 - Eric Wannemacher / @ericwannemacher

05/04/2016 at 01:57AM

22
#485 - Sebastián Mancilla / @smancill_m

05/04/2016 at 03:38AM

22
#486 - Giovanni Lagorio / @zxgio

05/04/2016 at 09:46AM

22
#487 - matthieu le grix / @mlegrix

05/04/2016 at 05:40PM

22
#488 - Peter Brooks / @pbrooks_uk

05/06/2016 at 02:17PM

22
#489 - Vikhyat Korrapati / @vikhyatk

05/07/2016 at 11:37AM

22
#490 - Clay Ratliff / @MulitfariousGuy

05/08/2016 at 06:03PM

22
#491 - Rob Ert / @robrunner888

05/08/2016 at 06:07PM

22
#492 - Nico Gevers / @gevious_

05/08/2016 at 06:12PM

22
#493 - よっぴぃ / @yoppynmhs

05/09/2016 at 03:05AM

22
#494 - Nicolás Alvarez / @nicoa_bb_ba_ar

05/09/2016 at 03:16AM

22
#495 - David / @david_hemminger

05/11/2016 at 12:07AM

22
#496 - Derrick Cohodas / @DerrickCohodas

05/11/2016 at 07:48AM

22
#497 - imlinder / @imLinder

05/11/2016 at 10:16AM

22
#498 - Atrament / @Atrament

05/11/2016 at 02:04PM

22
#499 - Vivek Bose / @Strangelich

05/11/2016 at 03:50PM

22
#500 - Patrick Knosowski / @KnoP8024

05/11/2016 at 09:30PM

22
#501 - kalq / @KamilKraszewski

05/12/2016 at 03:24AM

22
#502 - Jens / @jensbodal

05/12/2016 at 07:03AM

22
#503 - Victorien Lorcy / @LorcyVictorien

05/12/2016 at 09:01AM

22
#504 - Artūras Zakrevskis / @AZakrevskis

05/12/2016 at 02:42PM

22
#505 - Tautvilas / @TautviIas

05/12/2016 at 02:43PM

22
#506 - Arijus / @argshook

05/12/2016 at 02:43PM

22
#507 - Majo / @majodurco

05/13/2016 at 09:17PM

22
#508 - Slawek Zachcial / @SlawekZachcial

05/17/2016 at 06:20AM

22
#509 - vic © / @2r2w

05/19/2016 at 03:25PM

22
#510 - Nafaa Boutefer / @Nafaabout

05/21/2016 at 05:34AM