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

7239 active golfers, 32758 entries

Leaderboard (lowest score wins):
35
#6421 - eduardo torres / @etdavila10

03/01/2019 at 02:57AM

35
#6422 - Benjamin Priestman / @BenjaminPriest7

03/01/2019 at 10:52PM

35
#6423 - Charles Brossollet / @Tcharlss

03/02/2019 at 01:46PM

35
#6424 - Noel Danz / @programoncoffee

03/04/2019 at 09:03PM

35
#6425 - exqt / @_exqt_

03/11/2019 at 10:19AM

35
#6426 - The Joe / @computerjoe708

03/17/2019 at 04:03PM

35
#6427 - Kevin De Wilde / @dewil_de

03/21/2019 at 02:07PM

35
#6428 - Inf Loop / @infl00p

03/22/2019 at 06:38PM

35
#6429 - invokerzhangyichi / @itachizyc

04/02/2019 at 04:43AM

35
#6430 - Диплодок Денис / @l0sts0u1

04/03/2019 at 09:25AM

35
#6431 - Jan B. / @bracki

04/08/2019 at 12:46PM

35
#6432 - Clay Coffman / @Clay_Coffman

04/24/2019 at 11:19PM

35
#6433 - ももかわ / @Usa_Momokawa

05/08/2019 at 12:34PM

35
#6434 - Mick van der Vegt / @mickvdv

05/17/2019 at 01:52PM

35
#6435 - jibai Gao / @jibaiGao

05/17/2019 at 10:30PM

35
#6436 - ImaNotgate / @INotgate

05/22/2019 at 05:48PM

35
#6437 - 浚宇 / @Junyu_Wang_cn

05/23/2019 at 11:38AM

35
#6438 - Am Jam / @LoneJam

06/07/2019 at 12:36AM

35
#6439 - ほた / @hota1024

06/11/2019 at 10:09AM

35
#6440 - Hao-Ting Wang / @HaoTingW713

06/20/2019 at 03:14PM

35
#6441 - David Afonso / @davafons

07/01/2019 at 11:11PM

35
#6442 - Jeff Windsor / @jeffwindsor

07/20/2019 at 05:04PM

35
#6443 - Emanuele Aliverti / @memeAliverti

08/01/2019 at 07:17AM

35
#6444 - Alberto Pose / @thepose

08/18/2019 at 08:27AM

35
#6445 - Alexey Kuntsevich / @jezzarax

08/28/2019 at 12:53PM

35
#6446 - Wojciech Jurkowski / @yierzy

09/22/2019 at 07:36PM

35
#6447 - Moje dzieje / @Moje_dzieje

10/06/2019 at 08:45PM

35
#6448 - ahahsod / @ahahsod

10/07/2019 at 06:47AM

35
#6449 - César Cordeiro Rosa / @csrcordeiro

10/08/2019 at 12:52AM

35
#6450 - Nick Argyle / @nickargyle

10/13/2019 at 02:33AM