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

6732 active golfers, 30402 entries

Leaderboard (lowest score wins):
34
#5731 - かしゅーなっつ@修行中 / @kashew_nuts

02/18/2016 at 04:34PM

34
#5732 - Omri Yariv / @omriyariv

02/21/2016 at 10:50AM

34
#5733 - Brad Rhodes / @rhodesbrad

02/23/2016 at 05:33AM

34
#5734 - Indian Dope / @caxco93

02/24/2016 at 10:36PM

34
#5735 - _ / @RIPfrank_white

02/26/2016 at 09:39PM

34
#5736 - Craig Hills / @chills42

03/03/2016 at 05:47PM

34
#5737 - jb M / @Jiboo_hey

04/20/2016 at 01:51PM

34
#5738 - Niek de Gooijer / @Xorpio86

04/21/2016 at 03:10PM

34
#5739 - tristan_ph / @tristan_ph

05/11/2016 at 09:10AM

34
#5740 - Nabil Hashmi / @nabilhashmi

06/09/2016 at 02:39PM

34
#5741 - Marc Capell / @marc_capell

06/13/2016 at 08:35AM

34
#5742 - Zsolt Majoros / @mzsoltt

07/12/2016 at 03:51PM

34
#5743 - chris howes / @_chrishowes

07/20/2016 at 01:06AM

34
#5744 - Richard_ / @richardwlaub

07/22/2016 at 02:03AM

34
#5745 - saprative / @saprative

07/31/2016 at 02:11PM

34
#5746 - Wasif Iqbal / @mlprobe

08/09/2016 at 03:09AM

34
#5747 - Thomas Versteeg / @versteeg_t

08/10/2016 at 10:14AM

34
#5748 - Antti Kuosmanen ⭐ / @anttiviljami

08/12/2016 at 11:54AM

34
#5749 - Daniel Hallqvist / @dhallqvist

08/15/2016 at 11:24AM

34
#5750 - Nik Sun / @CandySunPlus

08/16/2016 at 06:18AM

34
#5751 - Mikkel Knudsen / @mikk2168

09/27/2016 at 05:37PM

34
#5752 - David Runger / @davidrunger

11/24/2016 at 06:42PM

34
#5753 - Nathan / @nbailey134

12/15/2016 at 02:26AM

34
#5754 - janusz janusz / @januszjanusz20

12/15/2016 at 07:23PM

34
#5755 - Simon Taylor / @SimonTaylorAU

01/27/2017 at 05:42AM

34
#5756 - Mohd Amin Yuddin / @mohdaminyuddin

01/28/2017 at 01:02AM

34
#5757 - Tarcísio Gruppi / @txgruppi

01/28/2017 at 11:25PM

34
#5758 - Michael Redman / @MikeyyRedman

02/22/2017 at 12:16PM

34
#5759 - John Wilson / @Login4anonymity

03/09/2017 at 01:50AM

34
#5760 - Joseph Bonilla / @JosephB95085049

03/20/2017 at 03:18PM