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

7425 active golfers, 33647 entries

Leaderboard (lowest score wins):
22
#601 - jaresty / @jaresty

08/22/2016 at 02:44PM

22
#602 - Paul Roe / @ep_roe

08/23/2016 at 10:27PM

22
#603 - david / @fa5c1ec94e28916

08/24/2016 at 02:42AM

22
#604 - Guillem Blanco / @BlancoGuillem

08/24/2016 at 09:33AM

22
#605 - Troy Lee / @troyjlee1

08/26/2016 at 06:20PM

22
#606 - Matteo Signer / @MatteoSigner

08/29/2016 at 09:01AM

22
#607 - Stephen Aument / @saument

08/29/2016 at 06:15PM

22
#608 - Aaron Williamson / @TheFunkOverlord

08/30/2016 at 10:43PM

22
#609 - Karol Łukaszewicz / @Karolukaszewicz

09/01/2016 at 06:46PM

22
#610 - jdupont655 / @jdupont655

09/01/2016 at 10:46PM

22
#611 - 馬 / @uma0124

09/03/2016 at 05:41AM

22
#612 - Dannver / @dannverwu

09/04/2016 at 07:48AM

22
#613 - Martin Carel / @cawel

09/04/2016 at 03:35PM

22
#614 - Mateusz / @Mantos77

09/04/2016 at 11:00PM

22
#615 - loki2441 / @loki2441

09/05/2016 at 07:54AM

22
#616 - 박 재 성 / @javajigi

09/06/2016 at 09:02AM

22
#617 - Chris / @Gaunah_

09/07/2016 at 09:50AM

22
#618 - hor1ace / @hor3ace

09/07/2016 at 03:24PM

22
#619 - ymmtmdk / @ymmtmdk

09/07/2016 at 11:58PM

22
#620 - ✘A / @Lolicon_H

09/11/2016 at 05:55AM

22
#621 - Randy Daw-Ran Liou / @dawranliou

09/14/2016 at 03:51PM

22
#622 - javier castro / @eusipial

09/17/2016 at 02:55AM

22
#623 - Michał Kordas / @michal_kordas

09/17/2016 at 10:07PM

22
#624 - コウモリ@real / @komori_meip

09/17/2016 at 10:15PM

22
#625 - Raj / @rjindel

09/18/2016 at 12:39AM

22
#626 - Sahar Rachamim (Kishu) / @SRachamim

09/18/2016 at 09:19PM

22
#627 - Christian Albertsen / @mannahusum

09/19/2016 at 02:38PM

22
#628 - Rachel / @birbnest

09/19/2016 at 08:51PM

22
#629 - Alexander Malaev / @spscream

09/20/2016 at 09:47PM

22
#630 - BLACKODE / @tweetblackode

09/21/2016 at 10:42AM