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
#571 - Ivan De Dios / @IvantheDugtrio

07/01/2016 at 08:12AM

22
#572 - Pedro Santos / @pedrosans

07/05/2016 at 09:42PM

22
#573 - luqscudi / @luqscudi

07/06/2016 at 12:59PM

22
#574 - Alex Bishop / @AlexJBishop

07/06/2016 at 04:29PM

22
#575 - Gabriel Niko Mojica / @MojicaNiko

07/06/2016 at 11:15PM

22
#576 - Jonathan / @jreyes33

07/07/2016 at 03:59PM

22
#577 - Maxim Semikin / @O_caliber_O

07/07/2016 at 09:40PM

22
#578 - Yan Lipovetskiy / @AngryNufri

07/07/2016 at 09:50PM

22
#579 - Amory Schlender / @schlamory

07/08/2016 at 02:43AM

22
#580 - zhenwu / @zhenwu3

07/08/2016 at 10:08AM

22
#581 - Jez Prime / @jezprime

07/08/2016 at 09:05PM

22
#582 - Andrew Hlavats / @farthestworld

07/09/2016 at 12:55AM

22
#583 - Girish Gokul / @girishgoku

07/14/2016 at 02:40AM

22
#584 - Sandeep Dhavale / @sandeep_dhavale

07/14/2016 at 10:08PM

22
#585 - alex m / @al_mk_

07/15/2016 at 02:25PM

22
#586 - Vatyx / @Vatyx

07/16/2016 at 12:57AM

22
#587 - Martin Tõnusoo / @martintonusoo

07/16/2016 at 04:38PM

22
#588 - Steffen Köhler / @Baertierchen

07/16/2016 at 05:39PM

22
#589 - Nikita Danilov / @Mirt_ru

07/17/2016 at 08:55AM

22
#590 - Angelux México / @XAngeluX

07/18/2016 at 01:28AM

22
#591 - Arnar Thor / @sirAgiz

07/19/2016 at 01:45AM

22
#592 - カオスラボ / @chaoscloud950

07/20/2016 at 01:55PM

22
#593 - Alonzo / @tolver_a

07/20/2016 at 08:42PM

22
#594 - richard / @wulianxuyang

07/22/2016 at 02:38AM

22
#595 - Richard O'Brien / @richard0b

07/22/2016 at 05:53AM

22
#596 - Bran / @brandypix

07/22/2016 at 04:43PM

22
#597 - Herre Heckstroem / @heckstroem

07/22/2016 at 10:35PM

22
#598 - Boubou / @brahimalekhine

07/24/2016 at 02:26PM

22
#599 - Benedikt Breinbauer / @benebun

07/24/2016 at 02:41PM

22
#600 - isaneba / @isaneba

07/25/2016 at 03:57AM