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
#451 - fake geek guy / @light_rook

04/14/2016 at 12:12AM

22
#452 - Camusensei / @Camusensei

04/14/2016 at 06:48AM

22
#453 - Lluís Mª Bosch / @LluisMa

04/15/2016 at 01:07AM

22
#454 - Champion Pierre / @Pierre_darkirus

04/15/2016 at 03:44PM

22
#455 - Domingue Justin / @_jdomingue

04/17/2016 at 06:38PM

22
#456 - Kevin / @tryzor

04/18/2016 at 02:29PM

22
#457 - Jake Griffin / @J4K0_G

04/20/2016 at 06:55PM

22
#458 - Daniel Burnett / @mango_cheetah

04/22/2016 at 09:46PM

22
#459 - Johnny Zhou / @JohnnyZhou01

04/24/2016 at 11:26AM

22
#460 - Tom Harada / @p10q

04/24/2016 at 08:04PM

22
#461 - A. Harry M. / @aharrym

04/25/2016 at 02:59PM

22
#462 - Yann Colina / @YannColina

04/26/2016 at 01:27PM

22
#463 - Thomas Bailey / @cthomasbailey

04/26/2016 at 02:37PM

22
#464 - Håkon Bråten / @h_braten

04/26/2016 at 02:41PM

22
#465 - Simon Pugnet / @polaris64

04/26/2016 at 09:16PM

22
#466 - Aleksandr Pak / @alekspak

04/27/2016 at 07:59PM

22
#467 - Andres Hazard / @andreshazard

04/28/2016 at 03:35AM

22
#468 - Hara ga Hetta / @harahelix

04/28/2016 at 03:56AM

22
#469 - Cristian Lupașcu / @clupasq

04/28/2016 at 09:47AM

22
#470 - Adam Collins / @adc613

04/28/2016 at 07:59PM

22
#471 - Ben Sherman / @bensherman

04/29/2016 at 01:04AM

22
#472 - Hoang Tran / @hoangtx_master

04/29/2016 at 03:22PM

22
#473 - Adam Leach / @qazwsxal

04/29/2016 at 07:39PM

22
#474 - Mikael Saltzman / @MikaelSaltzman

04/29/2016 at 09:45PM

22
#475 - matt_todd / @matt_todd

04/30/2016 at 08:28PM

22
#476 - alkozu / @alkozu

04/30/2016 at 09:15PM

22
#477 - mebubo / @mebubo

05/01/2016 at 12:26PM

22
#478 - Radovan Dražný / @raduzator

05/01/2016 at 06:43PM

22
#479 - Marshall Ward / @marshall_ward

05/02/2016 at 05:42AM

22
#480 - Bob Boberson / @BobersonBob7

05/02/2016 at 08:44AM