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

6708 active golfers, 30271 entries

Leaderboard (lowest score wins):
33
#5551 - jaredculp / @jaredculp

11/14/2017 at 07:36PM

33
#5552 - Will Schenk / @wschenk

11/20/2017 at 06:00PM

33
#5553 - Dhinesh Dhanasekaran / @ddk_grad

11/28/2017 at 07:36AM

33
#5554 - Brad / @Brad_InvSource

12/03/2017 at 07:46PM

33
#5555 - allinonemovie / @allinonemovie

12/17/2017 at 12:32AM

33
#5556 - Joe Meyer / @JMey94

12/31/2017 at 10:50PM

33
#5557 - Ignacy Kasperowicz / @ignacykas

01/05/2018 at 11:09AM

33
#5558 - Edgar Alloro / @alloro_e

01/05/2018 at 10:28PM

33
#5559 - ピンクのお姉さん / @human0013

02/05/2018 at 12:34AM

33
#5560 - phucvin / @phucvin

02/14/2018 at 03:45PM

33
#5561 - sol bloch / @Noogie13

02/23/2018 at 04:20PM

33
#5562 - Louis mouhat / @Louis_mouhat

02/27/2018 at 03:11PM

33
#5563 - Amanj Sherwany / @amanjpro

03/04/2018 at 04:57PM

33
#5564 - UziMonkey / @UziMonkey

03/18/2018 at 12:04AM

33
#5565 - Mohideen Imran Khan / @miknotes

04/12/2018 at 09:32AM

33
#5566 - Gilles Jacobs / @gillesmjacobs

04/14/2018 at 01:27PM

33
#5567 - Oliver G. / @Redbrain18

04/30/2018 at 06:41PM

33
#5568 - Alex Budilovsky / @alexbudy

05/01/2018 at 03:07AM

33
#5569 - Jonathan King / @JonKingUsername

05/03/2018 at 04:28PM

33
#5570 - autological_being / @metaporias

05/03/2018 at 04:58PM

33
#5571 - Pablo Orduna / @OrdunaPablo

05/12/2018 at 03:46PM

33
#5572 - Ryan Bas / @ryanbas21

05/22/2018 at 07:08PM

33
#5573 - violeta 👾🇦🇷🇧🇷 / @cyborgdiletante

05/25/2018 at 03:23AM

33
#5574 - Devin Hussey / @Easy_as_Pi314

06/07/2018 at 05:08PM

33
#5575 - Stefan Age / @stefan_age

07/07/2018 at 12:44AM

33
#5576 - Bram / @BramWSS

07/09/2018 at 03:25PM

33
#5577 - jestem króliczkiem / @karlicoss

07/09/2018 at 06:19PM

33
#5578 - amoslevin / @amoslevintweets

07/09/2018 at 10:04PM

33
#5579 - Nursan / @Nursan73316482

08/07/2018 at 06:46PM

33
#5580 - darktef / @darktef

08/08/2018 at 02:06AM