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

6798 active golfers, 30751 entries

Leaderboard (lowest score wins):
23
#2581 - Kazuki / @algo__n

08/09/2020 at 10:53AM

24
#2582 - Jack Satriano / @JackySat_

07/24/2015 at 03:14AM

24
#2583 - Endre Galaczi / @galacziendre

07/27/2015 at 01:56PM

24
#2584 - vimgolf / @myspare307

07/28/2015 at 11:51PM

24
#2585 - Tact Overflow / @muppling

07/30/2015 at 01:22PM

24
#2586 - Adrien Fabre / @statox42

08/06/2015 at 07:04PM

24
#2587 - Gabriel Florit / @gabrielflorit

08/07/2015 at 11:23PM

24
#2588 - Johan Adriaans / @JohanAdriaans

08/13/2015 at 04:48PM

24
#2589 - Jaypal Singh / @JaypalSingh

08/17/2015 at 09:42PM

24
#2590 - alex / @alexAngle8

08/21/2015 at 07:23PM

24
#2591 - Antonia Siu / @not_antonia

09/18/2015 at 12:49PM

24
#2592 - Andrew Loucky / @merely_oolong

10/03/2015 at 04:56PM

24
#2593 - Sebastian D. / @SebastianD__

10/05/2015 at 08:27AM

24
#2594 - Charles Martin / @instinctive

10/07/2015 at 06:29AM

24
#2595 - Pomin Wu / @pm5

10/14/2015 at 08:53AM

24
#2596 - Patrick Mitchell / @jpmitche11

10/14/2015 at 02:54PM

24
#2597 - mnx / @mnxx

10/14/2015 at 05:24PM

24
#2598 - Grégoire Delattre / @gregdel

10/14/2015 at 07:27PM

24
#2599 - xarmux / @xarmux

10/14/2015 at 08:53PM

24
#2600 - Dallin Abendroth / @DallinAbendroth

11/03/2015 at 08:38PM

24
#2601 - Marc Mims / @semifor

11/09/2015 at 05:34AM

24
#2602 - blamitter ✏️ / @blamitter

11/12/2015 at 03:23PM

24
#2603 - かわ​ら / @okwrtdsh

11/19/2015 at 04:47AM

24
#2604 - ManNerdGeek / @avdmeers

11/23/2015 at 10:20AM

24
#2605 - Johannes K / @JohannesK9

11/27/2015 at 12:11AM

24
#2606 - Jonas / @Amnesiacu

11/27/2015 at 01:50PM

24
#2607 - Joe Balancio / @JoeBalancio

12/08/2015 at 08:48PM

24
#2608 - brett / @brettyukich

12/09/2015 at 10:14PM

24
#2609 - Jonas K. / @geratheon

12/13/2015 at 08:04PM

24
#2610 - Jake Gillespie / @jdgillespie91

12/16/2015 at 11:40AM