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

5868 active golfers, 26319 entries

Leaderboard (lowest score wins):
22
#931 - Сергей Широковских / @hellomoto1771

06/03/2017 at 06:17AM

22
#932 - Rowan Tree / @RowanTr88447528

06/03/2017 at 12:15PM

22
#933 - Shayne Evans / @shayneevans

06/04/2017 at 03:43AM

22
#934 - ssh89 / @ssh89

06/04/2017 at 11:16AM

22
#935 - Adriano Benin / @adrianob11

06/06/2017 at 01:57AM

22
#936 - Mirzhan Irkegulov / @yonedalemma

06/06/2017 at 05:03PM

22
#937 - Camillott Games / @camillottgames

06/06/2017 at 11:14PM

22
#938 - .... / @coffman_r

06/07/2017 at 12:01AM

22
#939 - だださω / @kdaiki211

06/07/2017 at 01:54PM

22
#940 - MeteorSpark / @MeteorSparkCom

06/07/2017 at 03:53PM

22
#941 - EQMac MGBs / @EQMacMGBs

06/07/2017 at 08:16PM

22
#942 - Daniel Hjelm / @dhjelm

06/09/2017 at 04:27AM

22
#943 - Tom P / @TomP03837155

06/09/2017 at 09:40AM

22
#944 - Sergey Lisakov / @pozitron57

06/09/2017 at 11:05AM

22
#945 - Anthony George / @Xanuthatusu

06/11/2017 at 05:33AM

22
#946 - Scott Mills / @smm1729

06/11/2017 at 05:33PM

22
#947 - Azzteroweed / @AzzTeroweed

06/11/2017 at 09:39PM

22
#948 - Daren Hayward / @DarenHayward

06/12/2017 at 09:10AM

22
#949 - やま / @K6rzv7URxtE6CFy

06/12/2017 at 11:06AM

22
#950 - kanazawak / @_kanazawak

06/12/2017 at 12:47PM

22
#951 - James Bernsen / @jamesbernsen

06/12/2017 at 03:28PM

22
#952 - Harrison Wang / @HarrisonWang6

06/13/2017 at 06:52AM

22
#953 - Super VedoVatto / @supervedovatto

06/16/2017 at 03:31AM

22
#954 - Sebastián Etra / @EtraStyle

06/17/2017 at 03:21AM

22
#955 - moritz / @moritz45081535

06/18/2017 at 12:45PM

22
#956 - Joel Meyer-Hamme / @JoelMeyerHamme

06/18/2017 at 12:47PM

22
#957 - Артем Верхоглядов / @artditel

06/19/2017 at 12:26PM

22
#958 - Christian Stammen / @c0smiq

06/20/2017 at 09:59PM

22
#959 - GeneralSunbear / @GeneralSunbear

06/20/2017 at 11:34PM

22
#960 - Nick Bakkegaard / @Bakkemand

06/22/2017 at 04:28PM