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
#541 - zhenwu / @zhenwu3

07/08/2016 at 10:08AM

22
#542 - Jez Prime / @jezprime

07/08/2016 at 09:05PM

22
#543 - Andrew Hlavats / @farthestworld

07/09/2016 at 12:55AM

22
#544 - Girish Gokul / @girishgoku

07/14/2016 at 02:40AM

22
#545 - Sandeep Dhavale / @sandeep_dhavale

07/14/2016 at 10:08PM

22
#546 - alex m / @al_mk_

07/15/2016 at 02:25PM

22
#547 - Vatyx / @Vatyx

07/16/2016 at 12:57AM

22
#548 - Martin Tõnusoo / @martintonusoo

07/16/2016 at 04:38PM

22
#549 - Steffen Köhler / @Baertierchen

07/16/2016 at 05:39PM

22
#550 - Nikita Danilov / @Mirt_ru

07/17/2016 at 08:55AM

22
#551 - Angelux México / @XAngeluX

07/18/2016 at 01:28AM

22
#552 - Arnar Thor / @sirAgiz

07/19/2016 at 01:45AM

22
#553 - カオスラボ / @chaoscloud950

07/20/2016 at 01:55PM

22
#554 - Alonzo / @tolver_a

07/20/2016 at 08:42PM

22
#555 - richard / @wulianxuyang

07/22/2016 at 02:38AM

22
#556 - Richard O'Brien / @richard0b

07/22/2016 at 05:53AM

22
#557 - Bran / @brandypix

07/22/2016 at 04:43PM

22
#558 - Herre Heckstroem / @heckstroem

07/22/2016 at 10:35PM

22
#559 - Boubou / @brahimalekhine

07/24/2016 at 02:26PM

22
#560 - Benedikt Breinbauer / @benebun

07/24/2016 at 02:41PM

22
#561 - isaneba / @isaneba

07/25/2016 at 03:57AM

22
#562 - OumpaLoumpa / @OLoumpa

07/25/2016 at 07:43PM

22
#563 - Benjamin Espey / @bennyty

07/25/2016 at 08:17PM

22
#564 - Will / @obiwan__k3n00bi

07/28/2016 at 06:11AM

22
#565 - hyhit / @hyhit2

07/29/2016 at 02:40PM

22
#566 - Andreas Schnapp / @sna__p

07/29/2016 at 05:05PM

22
#567 - Diego Anaya Mancilla / @mancilladev

08/02/2016 at 02:05AM

22
#568 - Devin Lehmacher / @lehmacdj

08/02/2016 at 05:28PM

22
#569 - natejlong / @natejlong

08/03/2016 at 06:27PM

22
#570 - Anton / @AntonTell1

08/07/2016 at 03:32AM