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

5392 active golfers, 24063 entries

Leaderboard (lowest score wins):
39
#5101 - Chrinux / @Chrinux

11/15/2015 at 03:01AM

39
#5102 - Steinar / @nerdelbaum

01/15/2016 at 09:57AM

39
#5103 - 012 / @Mandocas_powa

01/27/2016 at 07:43PM

39
#5104 - Adrien C. / @A31Cplt

05/02/2016 at 01:29PM

39
#5105 - Aisling / @AislingNimdis

05/15/2016 at 07:50AM

39
#5106 - hbd anon / @HBDAnon

06/07/2016 at 04:11PM

39
#5107 - Alexey Sopin / @AlexeySopin

06/28/2016 at 07:08PM

39
#5108 - jc / @joshuacalloway

08/23/2016 at 11:33PM

39
#5109 - MoreFreeze / @morefreeze

09/01/2016 at 05:02AM

39
#5110 - Niclas Thall / @thallniclas

10/28/2016 at 06:15AM

39
#5111 - Tong Cui / @TonyCui

06/26/2017 at 07:49AM

39
#5112 - 신승훈 / @h00nzzi

08/09/2017 at 02:49PM

39
#5113 - hetsketch / @hetsketch

08/09/2017 at 03:33PM

39
#5114 - Max / @maxjoehnk

08/24/2017 at 07:40PM

39
#5115 - Henry Jenkins / @steakunderscore

09/19/2017 at 07:32PM

39
#5116 - Charles D / @charliechin

09/19/2017 at 10:21PM

39
#5117 - Joma (Jonathan Ma) / @jomaoppa

09/26/2017 at 09:57PM

39
#5118 - Tehut G / @TahootyHoot

09/28/2017 at 05:11PM

39
#5119 - ♥ ☕ / @MACSkeptic

10/10/2017 at 08:07AM

39
#5120 - hick town / @H1ckt0wN

11/12/2017 at 09:26PM

39
#5121 - Lalith Natarajan / @bizentass

12/05/2017 at 08:06PM

39
#5122 - Cawan Porto / @cawanporto

12/27/2017 at 07:56PM

39
#5123 - Arvindh Kumar / @ArvindhKumar20

05/03/2018 at 01:44PM

39
#5124 - 권휘 / @kymkh0902

05/04/2018 at 12:27AM

39
#5125 - Wasistdasfuer1Welt / @Wasistdasfuer1W

05/14/2018 at 10:57AM

39
#5126 - George Horrell / @gwphorrell

05/22/2018 at 08:46PM

39
#5127 - t0k1ko / @t0k1ko

06/01/2018 at 10:15AM

39
#5128 - Max Becker / @myfriendthedog

06/23/2018 at 12:56AM

39
#5129 - Seth McLaughlin / @sethmc

07/30/2018 at 11:27PM

39
#5130 - Stefan Schneider / @hinogi

09/05/2018 at 11:19AM