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
#511 - Mihai Crăiță / @mihai_craita

06/12/2016 at 06:23PM

22
#512 - Robert Basic / @robertbasic

06/13/2016 at 12:29PM

22
#513 - Zed Byrne / @ZeByrne

06/14/2016 at 12:16PM

22
#514 - Paweł Smołka / @pawelsmolka

06/14/2016 at 12:48PM

22
#515 - Robert Perce / @robertperce

06/14/2016 at 04:11PM

22
#516 - TaoChen / @632143592Tao

06/15/2016 at 04:49AM

22
#517 - Ikypiky / @nerdbeereis

06/15/2016 at 07:51PM

22
#518 - Kerson Hsiao / @KersonHsiao

06/16/2016 at 12:18PM

22
#519 - Buster K. Mejborn / @BusterKMejborn

06/16/2016 at 08:28PM

22
#520 - Павел Игоревич / @VizierST

06/17/2016 at 07:56AM

22
#521 - Michiel Schuurmans / @michiel95328395

06/17/2016 at 06:42PM

22
#522 - Jacob Niehus / @wilywampa

06/19/2016 at 11:07PM

22
#523 - Byron Marohn / @byron_marohn

06/22/2016 at 10:28PM

22
#524 - Jerome Dalbert / @jeromedalbert

06/24/2016 at 12:34AM

22
#525 - Kinster Ramscote / @RamscoteAgjbba

06/25/2016 at 11:27AM

22
#526 - Timothy Caleb Nordlo / @tnordloh

06/26/2016 at 02:37AM

22
#527 - Ryan Malon / @based_elle

06/26/2016 at 08:11PM

22
#528 - Davide / @DvdMgr

06/27/2016 at 01:05PM

22
#529 - IHanafusa / @FuwattoFlower

06/28/2016 at 03:07PM

22
#530 - Reuben Huxley / @missiontocode

06/29/2016 at 01:25AM

22
#531 - Matthieu avec deux T / @meschatt

06/29/2016 at 11:04AM

22
#532 - Ivan De Dios / @IvantheDugtrio

07/01/2016 at 08:12AM

22
#533 - Pedro Santos / @pedrosans

07/05/2016 at 09:42PM

22
#534 - luqscudi / @luqscudi

07/06/2016 at 12:59PM

22
#535 - Alex Bishop / @AlexJBishop

07/06/2016 at 04:29PM

22
#536 - Gabriel Niko Mojica / @MojicaNiko

07/06/2016 at 11:15PM

22
#537 - Jonathan / @jreyes33

07/07/2016 at 03:59PM

22
#538 - Maxim Semikin / @O_caliber_O

07/07/2016 at 09:40PM

22
#539 - Yan Lipovetskiy / @AngryNufri

07/07/2016 at 09:50PM

22
#540 - Amory Schlender / @schlamory

07/08/2016 at 02:43AM