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

7241 active golfers, 32765 entries

Leaderboard (lowest score wins):
33
#6061 - Hung Hoang / @hoanghun5

08/26/2019 at 12:09PM

33
#6062 - Iggy / @iggredible

09/10/2019 at 04:00AM

33
#6063 - Frederich Stine / @FrederichStine

10/22/2019 at 10:30PM

33
#6064 - Matthew Heaton / @MatthewHeaton17

10/26/2019 at 06:15PM

33
#6065 - Velvet thunder / @wallybh

10/28/2019 at 10:05PM

33
#6066 - ENSORIZATION / @ensorization

11/01/2019 at 08:11PM

33
#6067 - Max Coplan / @mchcopl

11/02/2019 at 01:02AM

33
#6068 - Chen / @corrigendus

11/19/2019 at 05:34AM

33
#6069 - Yanis ♟ / @yanis_trs

11/19/2019 at 10:54AM

33
#6070 - Andreas Holck Høeg-P / @andreashhp

11/22/2019 at 02:39PM

33
#6071 - Steven Hobbs / @sthobbs2

12/10/2019 at 04:04AM

33
#6072 - bige / @bige17246517

12/13/2019 at 04:25AM

33
#6073 - Geoff Hankerson / @ghankstef

12/17/2019 at 01:23AM

33
#6074 - Steve Racanovic / @steve_racanovic

12/17/2019 at 09:00PM

33
#6075 - Jonathan Pence / @Jonathan_Pence

12/25/2019 at 03:54PM

33
#6076 - WillyPillow / @WillyPillow

12/28/2019 at 04:11PM

33
#6077 - YTREWQ / @userytrewq

01/22/2020 at 07:08AM

33
#6078 - Aaron Dettmann / @AaronDettmann

01/29/2020 at 06:37PM

33
#6079 - martynas-st / @st_martynas

01/30/2020 at 03:30PM

33
#6080 - Ifor Williams / @iforwms

02/05/2020 at 10:50AM

33
#6081 - Pete Erickson / @peteywheastraw

02/08/2020 at 05:51AM

33
#6082 - Nala Nil / @nala_nil

02/09/2020 at 05:34AM

33
#6083 - stevan / @stevan76107116

02/12/2020 at 06:41AM

33
#6084 - joyce / @fhuiwfjj

02/22/2020 at 09:17AM

33
#6085 - Barrett Hafner / @barretthafner

02/29/2020 at 10:13PM

33
#6086 - Metropolitan Magazine / @MMagazineItalia

03/06/2020 at 05:52PM

33
#6087 - Fernando Serboncini / @fserb

03/07/2020 at 04:08PM

33
#6088 - Maruf Jony / @marufjony

03/15/2020 at 04:30PM

33
#6089 - Spencer Anderson / @Narbulus

03/19/2020 at 07:57PM

33
#6090 - Arda Şener / @ardasenercs

04/01/2020 at 04:16PM