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

6912 active golfers, 31292 entries

Leaderboard (lowest score wins):
24
#2641 - Grégoire Delattre / @gregdel

10/14/2015 at 07:27PM

24
#2642 - xarmux / @xarmux

10/14/2015 at 08:53PM

24
#2643 - Dallin Abendroth / @DallinAbendroth

11/03/2015 at 08:38PM

24
#2644 - Marc Mims / @semifor

11/09/2015 at 05:34AM

24
#2645 - blamitter ✏️ / @blamitter

11/12/2015 at 03:23PM

24
#2646 - かわ​ら / @okwrtdsh

11/19/2015 at 04:47AM

24
#2647 - ManNerdGeek / @avdmeers

11/23/2015 at 10:20AM

24
#2648 - Johannes K / @JohannesK9

11/27/2015 at 12:11AM

24
#2649 - Jonas / @Amnesiacu

11/27/2015 at 01:50PM

24
#2650 - Joe Balancio / @JoeBalancio

12/08/2015 at 08:48PM

24
#2651 - brett / @brettyukich

12/09/2015 at 10:14PM

24
#2652 - Jonas K. / @geratheon

12/13/2015 at 08:04PM

24
#2653 - Jake Gillespie / @jdgillespie91

12/16/2015 at 11:40AM

24
#2654 - Ashley Feniello / @AshleyFen

12/17/2015 at 03:12AM

24
#2655 - Ethan Stewart / @EthanS279

12/23/2015 at 08:29PM

24
#2656 - Thomas Williams / @neopsalmist

01/05/2016 at 09:43PM

24
#2657 - (´ ・ω・`) / @zenmou

01/10/2016 at 06:23AM

24
#2658 - RobertT / @techrt2050

01/19/2016 at 04:03AM

24
#2659 - John Traji / @JTraji

02/01/2016 at 07:56PM

24
#2660 - Javi Polo / @javipolo

02/05/2016 at 05:20PM

24
#2661 - dfleischman / @dfleischman

02/25/2016 at 10:15PM

24
#2662 - Emil Soman / @emilsoman

02/26/2016 at 10:45PM

24
#2663 - Daniel Urzica / @revealer_dan

02/27/2016 at 12:30PM

24
#2664 - Kyle Holzinger / @kyleholzinger

03/18/2016 at 03:53AM

24
#2665 - Jason Choi / @joyous_jason

03/22/2016 at 10:32AM

24
#2666 - Adam Sernheim / @tradfursten

03/22/2016 at 04:06PM

24
#2667 - Martin Hwasser / @martinhwasser

03/24/2016 at 08:44PM

24
#2668 - Diego Garcia ⚒ / @drgarcia1986

04/02/2016 at 11:26PM

24
#2669 - Brian / @btilma

04/07/2016 at 11:35PM

24
#2670 - ほんとvaca / @hontovaca

04/13/2016 at 10:17PM