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

6710 active golfers, 30302 entries

Leaderboard (lowest score wins):
33
#5521 - LinuxTrainingAcademy / @LinuxTA

01/10/2017 at 09:24PM

33
#5522 - Moussinho / @mouss4243

02/01/2017 at 08:51PM

33
#5523 - Patrik Pihlstr枚m / @metacognizance

02/03/2017 at 02:12PM

33
#5524 - Juan D. Acosta / @juandacorias

02/17/2017 at 07:38PM

33
#5525 - Gary Carter / @_carterg_

02/23/2017 at 05:04PM

33
#5526 - Ethan Kent / @EthanEKent

02/25/2017 at 12:20AM

33
#5527 - Rodrigo Garc铆a / @garcialeonrodri

03/02/2017 at 09:25PM

33
#5528 - Daniel Sch盲fer / @DrJohnZoid

03/20/2017 at 11:09PM

33
#5529 - Michael Firmin / @mcfirmin

03/24/2017 at 11:11PM

33
#5530 - VpzomTrrfrt / @vpzomtrrfrt

03/28/2017 at 01:15AM

33
#5531 - maxime m / @werdsamxd

04/02/2017 at 02:06PM

33
#5532 - Peter Gundel / @GundelMail

04/16/2017 at 07:22AM

33
#5533 - Naz Malik / @nazwhale

04/20/2017 at 07:51AM

33
#5534 - 馃尃 路路路 馃対 路路路 馃惉 / @sub_lunar

04/20/2017 at 09:13AM

33
#5535 - Herr Salamander / @Askesemann

04/20/2017 at 12:29PM

33
#5536 - brucesnyder / @brucesnyder

05/03/2017 at 07:50PM

33
#5537 - Zac Connelly / @mugglelover13

05/04/2017 at 12:15PM

33
#5538 - Johan Kristiansson / @johankri

06/14/2017 at 10:56AM

33
#5539 - Jonas Granquist / @jonasgranquist

06/17/2017 at 03:33PM

33
#5540 - Kevin Lefevre / @klefevre_

06/18/2017 at 01:44PM

33
#5541 - fuku1026 / @fukusuke1026

06/29/2017 at 02:34PM

33
#5542 - Tony Ren / @STXSoulMine

07/28/2017 at 04:48PM

33
#5543 - Barespamtak / @barespamtak

09/06/2017 at 07:51AM

33
#5544 - Loisaida Sam 馃檶 / @LoisaidaSam

09/19/2017 at 08:20PM

33
#5545 - Dennis Wei / @DennisWei_

09/19/2017 at 08:26PM

33
#5546 - Morgan / @morganmay

09/22/2017 at 01:18AM

33
#5547 - Loreno Heer / @helohe

09/24/2017 at 07:37PM

33
#5548 - Michael Signorella / @MikeSignorella

09/26/2017 at 09:30PM

33
#5549 - Mick Soda / @MidgarMassacre

09/29/2017 at 05:50AM

33
#5550 - Suphawit Getmark / @SGetmark

10/03/2017 at 06:59AM