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

6717 active golfers, 30347 entries

Leaderboard (lowest score wins):
22
#1741 - Peter Dolan / @PeterDo76228680

04/25/2019 at 07:14PM

22
#1742 - Sarah Luongo / @SarahLuongo3

04/26/2019 at 01:09AM

22
#1743 - Dan Nestor / @dandrestor

04/26/2019 at 09:39AM

22
#1744 - 🐄 / @cow_emoji

04/26/2019 at 01:54PM

22
#1745 - Kai.Li / @KaiLi19

04/27/2019 at 06:55AM

22
#1746 - Juan R Leon / @JuanRLeon1

04/29/2019 at 03:56AM

22
#1747 - EliTheCoder / @elithecoder

04/30/2019 at 03:16PM

22
#1748 - Sherab Giovannini / @shaddycls

05/01/2019 at 10:29AM

22
#1749 - Owen Campbell / @opcampbell

05/03/2019 at 12:27PM

22
#1750 - Manos Koutselakis / @koutselakis_m

05/04/2019 at 10:20PM

22
#1751 - Fiffy / @sr21486642

05/06/2019 at 02:14PM

22
#1752 - Sebastien Nicoud / @sebnukem

05/07/2019 at 01:52AM

22
#1753 - りょ / @ryoo141

05/08/2019 at 03:26PM

22
#1754 - Arno / @arnoxmp

05/08/2019 at 03:54PM

22
#1755 - Jairo Suarez / @xyos

05/08/2019 at 04:06PM

22
#1756 - Felipe Monteiro / @monteiro_fp

05/08/2019 at 05:07PM

22
#1757 - test / @test35595941

05/09/2019 at 03:25AM

22
#1758 - dehodson / @dehodson

05/09/2019 at 03:19PM

22
#1759 - Pauli Taipale / @pauli_taipale

05/09/2019 at 04:05PM

22
#1760 - Damián Ariel Marotte / @damianarielm

05/09/2019 at 11:55PM

22
#1761 - TimMcGuire / @mcguire

05/10/2019 at 04:23PM

22
#1762 - kakunpala / @kakun_pala

05/10/2019 at 09:01PM

22
#1763 - zoozers / @zoozers

05/11/2019 at 12:48PM

22
#1764 - Przemek Kurek / @PrzemekKurek

05/11/2019 at 02:30PM

22
#1765 - Nolen Royalty / @NolenRoyalty

05/12/2019 at 05:21PM

22
#1766 - Urquhart #SurrenderBill / @LostUrquhart

05/13/2019 at 07:13AM

22
#1767 - cjariebs / @cjariebs1

05/14/2019 at 03:34AM

22
#1768 - Tosiaki / @Tosiaki1

05/15/2019 at 12:05AM

22
#1769 - Daniel Hakimian / @danrafhak

05/15/2019 at 12:37AM

22
#1770 - Elcio Ferreira / @elcio

05/15/2019 at 01:03AM