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 5747 remaining solutions by signing in and submitting your own entry
#5748 Yushia Sou / @yuessiah - Score: 427 - 05/08/19 @ 16:47
VG<C-P><Esc><Esc>kkkkkkkkkkkVjjjjjjjjjjjjjjjjjjxi<50-53>*temp var1 0<CR>*temp var2 "hi"<CR>*temp var3 -1<CR>*temp var4 42<CR>*temp var5 "asdf"<CR>*temp var6 0<CR>*temp var7 11<CR><CR>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."<CR><CR>New text.<CR><CR>This challenge is just a simple movement and entering text at a certain place.<Esc>[201~jk<BS><BS><Esc> kk:wq<BS><BS>q<BS>wq<CR>

0 comments


Created by: @Flurrywinde

5748 active golfers, 25720 entries

Leaderboard (lowest score wins):
22
#391 - Yanis KHORSI / @YanisKHORSI

03/23/2016 at 10:18PM

22
#392 - Pierre Stévens / @pierre_stv

03/24/2016 at 08:51AM

22
#393 - Léo Ercolanelli / @ercolanellileo

03/24/2016 at 01:19PM

22
#394 - Janko Jerinic / @JankoJerinic

03/26/2016 at 05:42AM

22
#395 - Dan Kilman / @dan_kilman

03/26/2016 at 03:36PM

22
#396 - mac calmar / @calmarc

03/27/2016 at 03:15AM

22
#397 - Keri Volans / @KeriVolans

03/29/2016 at 08:18AM

22
#398 - Dinesh Bhosale / @MrDineshBhosale

03/30/2016 at 10:39AM

22
#399 - Sean A / @Llanion

03/30/2016 at 07:18PM

22
#400 - Tyler / @tylerbindon

03/31/2016 at 03:18AM

22
#401 - lilach adir / @leelaRed

03/31/2016 at 07:25AM

22
#402 - Jonny / @Jonnytron

04/01/2016 at 02:36AM

22
#403 - Evan Moore / @etmoore

04/02/2016 at 02:54AM

22
#404 - Alice Benign / @AliceBenign

04/02/2016 at 02:11PM

22
#405 - Yuriy / @skriyka

04/07/2016 at 08:54PM

22
#406 - Shawn Wallis / @bote52469207

04/08/2016 at 04:37AM

22
#407 - Robert Carmosino / @Cryptic_Storm

04/09/2016 at 07:37AM

22
#408 - Marcin Radomski / @_dextero

04/09/2016 at 11:00AM

22
#409 - ramandeep randhawa / @rsrandhawa

04/10/2016 at 08:07PM

22
#410 - Nathan Schulte / @nmschulte

04/11/2016 at 08:12PM

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

04/13/2016 at 04:22AM

22
#412 - fake geek guy / @light_rook

04/14/2016 at 12:12AM

22
#413 - Camusensei / @Camusensei

04/14/2016 at 06:48AM

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

04/15/2016 at 01:07AM

22
#415 - Champion Pierre / @Pierre_darkirus

04/15/2016 at 03:44PM

22
#416 - Domingue Justin / @_jdomingue

04/17/2016 at 06:38PM

22
#417 - Kevin / @tryzor

04/18/2016 at 02:29PM

22
#418 - Jake Griffin / @J4K0_G

04/20/2016 at 06:55PM

22
#419 - Daniel Burnett / @mango_cheetah

04/22/2016 at 09:46PM

22
#420 - Johnny Zhou / @JohnnyZhou01

04/24/2016 at 11:26AM