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

5971 active golfers, 26789 entries

Leaderboard (lowest score wins):
22
#991 - Nick Johnstone / @widdnz

07/24/2017 at 11:29PM

22
#992 - LR / @TextsFromChaCha

07/25/2017 at 06:29AM

22
#993 - Imran Khan / @ik6513388

07/27/2017 at 07:35AM

22
#994 - Vedro / @Vedro03557622

07/27/2017 at 08:25PM

22
#995 - Da1whotaints / @da1whotaints

07/29/2017 at 10:51PM

22
#996 - mote ✨ / @__mote

07/31/2017 at 12:33PM

22
#997 - Ky Statham / @ijustwannacode

07/31/2017 at 07:49PM

22
#998 - Alexis Andre / @MacTuitui

08/01/2017 at 02:53AM

22
#999 - Lonnon Foster / @lonnon

08/04/2017 at 03:37PM

22
#1000 - Meg Blub / @BlubMeg

08/05/2017 at 08:27AM

22
#1001 - Adrian Staniec / @adrianstaniec

08/05/2017 at 09:04AM

22
#1002 - Conrad / @Conrad55084958

08/05/2017 at 08:59PM

22
#1003 - humangas / @humangas_

08/06/2017 at 02:56AM

22
#1004 - LuftAffe3 / @LuftAffe3

08/06/2017 at 10:54AM

22
#1005 - Plop plop / @plopplopplop6

08/07/2017 at 07:09PM

22
#1006 - Alphonso De La Morte / @FatDrakula

08/08/2017 at 06:46AM

22
#1007 - godot / @gclair80

08/08/2017 at 09:48PM

22
#1008 - andrew / @wty_andrew

08/10/2017 at 08:52AM

22
#1009 - David G0LD0 Forcier / @G0lD015

08/14/2017 at 07:07PM

22
#1010 - asdf qwerty / @asdfqwe31340568

08/14/2017 at 10:30PM

22
#1011 - Wilson Alvarez / @Rubonnek

08/14/2017 at 10:42PM

22
#1012 - Floris van Liere / @FlorisvanLiere

08/15/2017 at 05:27AM

22
#1013 - Dmitry Platonov / @d_platonov

08/15/2017 at 07:56PM

22
#1014 - Igor Sowinski / @IgorSowinski

08/16/2017 at 03:21PM

22
#1015 - ken ore / @ken60625

08/17/2017 at 12:07PM

22
#1016 - D Fenec / @fenec230

08/18/2017 at 10:17PM

22
#1017 - tyy / @luckytianyiyan

08/21/2017 at 08:07AM

22
#1018 - Wouter van der Meel / @AltWouss

08/21/2017 at 08:54AM

22
#1019 - SirVimGolf / @SirVimGolf

08/23/2017 at 12:31PM

22
#1020 - Marek Jędrzejewski / @cotusiewpisuje

08/23/2017 at 05:09PM