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, 24023 entries

Leaderboard (lowest score wins):
22
#421 - David Jr / @DmcdonnelJr

03/15/2016 at 09:23PM

22
#422 - tullie / @tulliemurrell

03/17/2016 at 06:35AM

22
#423 - Niko Myllynen / @spktklr

03/17/2016 at 05:30PM

22
#424 - Filippos K. / @filkaris

03/18/2016 at 01:53PM

22
#425 - Jonathan Taylor / @Jonyonson

03/19/2016 at 04:39AM

22
#426 - Joey Marianer / @roie_m

03/19/2016 at 04:15PM

22
#427 - glepha / @glepha_vim

03/21/2016 at 04:49AM

22
#428 - Tose / @Toseim

03/21/2016 at 01:50PM

22
#429 - Neelo / @Neelo_Bullet

03/22/2016 at 04:16PM

22
#430 - Yanis KHORSI / @YanisKHORSI

03/23/2016 at 10:18PM

22
#431 - Pierre Stévens / @pierre_stv

03/24/2016 at 08:51AM

22
#432 - Léo Ercolanelli / @ercolanellileo

03/24/2016 at 01:19PM

22
#433 - Janko Jerinic / @JankoJerinic

03/26/2016 at 05:42AM

22
#434 - Dan Kilman / @dan_kilman

03/26/2016 at 03:36PM

22
#435 - mac calmar / @calmarc

03/27/2016 at 03:15AM

22
#436 - Keri Volans / @KeriVolans

03/29/2016 at 08:18AM

22
#437 - Dinesh Bhosale / @MrDineshBhosale

03/30/2016 at 10:39AM

22
#438 - Sean A / @Llanion

03/30/2016 at 07:18PM

22
#439 - Tyler / @tylerbindon

03/31/2016 at 03:18AM

22
#440 - lilach adir / @leelaRed

03/31/2016 at 07:25AM

22
#441 - Jonny / @Jonnytron

04/01/2016 at 02:36AM

22
#442 - Evan Moore / @etmoore

04/02/2016 at 02:54AM

22
#443 - Alice Benign / @AliceBenign

04/02/2016 at 02:11PM

22
#444 - Yuriy / @skriyka

04/07/2016 at 08:54PM

22
#445 - Shawn Wallis / @bote52469207

04/08/2016 at 04:37AM

22
#446 - Robert Carmosino / @Cryptic_Storm

04/09/2016 at 07:37AM

22
#447 - Marcin Radomski / @_dextero

04/09/2016 at 11:00AM

22
#448 - ramandeep randhawa / @rsrandhawa

04/10/2016 at 08:07PM

22
#449 - Nathan Schulte / @nmschulte

04/11/2016 at 08:12PM

22
#450 - Joseph J. Piché / @jjpiche

04/13/2016 at 04:22AM