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

5985 active golfers, 26839 entries

Leaderboard (lowest score wins):
22
#331 - Andre Behrens / @mrandre

02/12/2016 at 11:03PM

22
#332 - Mathias Andersson / @Wraul

02/13/2016 at 06:07PM

22
#333 - Christopher MCA / @christopherMCA

02/15/2016 at 08:24AM

22
#334 - Rubén Chavarría T. / @rchavarriat

02/15/2016 at 11:34AM

22
#335 - xyd / @emc2314

02/15/2016 at 12:40PM

22
#336 - shark dick / @DickShark

02/15/2016 at 04:31PM

22
#337 - ben kavanagh / @bkava

02/17/2016 at 04:08AM

22
#338 - Chris / @cdentel

02/17/2016 at 05:24AM

22
#339 - Drenn / @drenn9

02/17/2016 at 08:26PM

22
#340 - Sebastian Pardo / @sebpardo

02/18/2016 at 03:35AM

22
#341 - Ryan Langewisch / @rlangewi

02/18/2016 at 11:00PM

22
#342 - Michał Misiarek / @mmisiarek

02/19/2016 at 09:46AM

22
#343 - Xiaocan Li / @XiaocanLi

02/20/2016 at 05:41AM

22
#344 - Northern Floats / @northernfloats

02/20/2016 at 07:32PM

22
#345 - leroy / @leroypubel

02/21/2016 at 06:51AM

22
#346 - Christoph / @creimers5000

02/22/2016 at 09:21PM

22
#347 - Stephen / @StephenPek

02/23/2016 at 05:34AM

22
#348 - Jonas Sundberg / @J_Sund

02/23/2016 at 03:08PM

22
#349 - Robert Mosher / @rcmosher

02/23/2016 at 04:53PM

22
#350 - Carlos A Henríquez Q / @lagunex

02/24/2016 at 01:11AM

22
#351 - Regis A. Ely / @regisaely

02/24/2016 at 11:36AM

22
#352 - hardaudit / @hardaudit

02/24/2016 at 04:07PM

22
#353 - antew / @antewcode

02/24/2016 at 09:37PM

22
#354 - Joseph Abrahams / @josephabrahams

02/26/2016 at 09:19PM

22
#355 - Daniel / @danielpie92

02/27/2016 at 08:49PM

22
#356 - Ralf Haffa / @fatslo

02/28/2016 at 12:49PM

22
#357 - Alex Coventry / @AlxCoventry

02/28/2016 at 05:29PM

22
#358 - lukhar / @_lukhar

02/29/2016 at 12:49AM

22
#359 - Charles Laber-Smith / @clabersmith

02/29/2016 at 02:16AM

22
#360 - Mark Saiget / @MarkSaiget

02/29/2016 at 06:16AM