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

7063 active golfers, 32034 entries

Leaderboard (lowest score wins):
23
#2401 - Pavol Slamka / @Archipedes

07/24/2016 at 06:47PM

23
#2402 - Sam Hammer / @samhammer325

07/30/2016 at 12:44AM

23
#2403 - Gabriel Sztorc / @gabriel_sztorc

07/31/2016 at 10:46PM

23
#2404 - 青木 美将 / @YoshimasaAoki

08/03/2016 at 06:47AM

23
#2405 - Дмитрий Петров / @dpetrov111

08/03/2016 at 05:11PM

23
#2406 - Restroom Sounds / @RestroomSounds

08/05/2016 at 01:07PM

23
#2407 - Alessandro Fusco / @alefucis

08/09/2016 at 11:39PM

23
#2408 - yuri ghensev / @yurighensev

08/10/2016 at 04:16PM

23
#2409 - Eric Nielsen / @ericbn8

08/14/2016 at 03:39AM

23
#2410 - Noah Gamboa / @noah80774444

08/19/2016 at 12:17AM

23
#2411 - Jeremiah Goyette / @JeremiahGoyette

08/20/2016 at 05:09AM

23
#2412 - Maik Teske / @maikteske

08/23/2016 at 12:48PM

23
#2413 - Spy / @thatspysaspy

08/27/2016 at 06:51AM

23
#2414 - ILikeVim / @VimIsCool

09/05/2016 at 01:43PM

23
#2415 - John Jacob / @johnrjacob

09/06/2016 at 12:12AM

23
#2416 - 알카포 / @alkpo12

09/08/2016 at 08:01PM

23
#2417 - Shahaf A / @Av3r4ge

09/12/2016 at 11:25AM

23
#2418 - Aaron J. Radke / @radke

09/18/2016 at 03:30AM

23
#2419 - Allen57 / @ludo57310

09/18/2016 at 08:45AM

23
#2420 - Rohan Orton / @rohan_orton

09/20/2016 at 02:28PM

23
#2421 - Kevin Ilphrin Pellet / @Kilphrin

09/24/2016 at 09:29AM

23
#2422 - Whossname / @BuzzaTyson

09/29/2016 at 11:29AM

23
#2423 - Marko Marulic / @loneloss

10/12/2016 at 03:00PM

23
#2424 - jinx balotchnik / @balotchnik

10/14/2016 at 10:17PM

23
#2425 - Matti Sairanen / @MattiSairanen

11/12/2016 at 10:30AM

23
#2426 - Joe Chan / @joech4n

11/14/2016 at 07:44PM

23
#2427 - toddagibson / @toddagibson

11/19/2016 at 08:28PM

23
#2428 - Dillon Kearns / @dillontkearns

11/26/2016 at 05:23AM

23
#2429 - Bill Booth / @ohiopyle

11/27/2016 at 09:12AM

23
#2430 - Miguel Jaques / @migJaques

12/02/2016 at 01:40PM