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

7450 active golfers, 33757 entries

Leaderboard (lowest score wins):
22
#451 - yudera / @yudemente

05/03/2016 at 02:39AM

22
#452 - Sergio L. Montolio / @sergiomontolio

05/03/2016 at 11:31PM

22
#453 - Darren Tsung / @darrentsung

05/04/2016 at 12:34AM

22
#454 - alex / @4lex

05/04/2016 at 01:48AM

22
#455 - Eric Wannemacher / @ericwannemacher

05/04/2016 at 01:57AM

22
#456 - Sebastián Mancilla / @smancill_m

05/04/2016 at 03:38AM

22
#457 - Giovanni Lagorio / @zxgio

05/04/2016 at 09:46AM

22
#458 - matthieu le grix / @mlegrix

05/04/2016 at 05:40PM

22
#459 - Peter Brooks / @pbrooks_uk

05/06/2016 at 02:17PM

22
#460 - Vikhyat Korrapati / @vikhyatk

05/07/2016 at 11:37AM

22
#461 - Clay Ratliff / @MulitfariousGuy

05/08/2016 at 06:03PM

22
#462 - Rob Ert / @robrunner888

05/08/2016 at 06:07PM

22
#463 - Nico Gevers / @gevious_

05/08/2016 at 06:12PM

22
#464 - よっぴぃ / @yoppynmhs

05/09/2016 at 03:05AM

22
#465 - Nicolás Alvarez / @nicoa_bb_ba_ar

05/09/2016 at 03:16AM

22
#466 - David / @david_hemminger

05/11/2016 at 12:07AM

22
#467 - Derrick Cohodas / @DerrickCohodas

05/11/2016 at 07:48AM

22
#468 - Johan Linder / @imLinder

05/11/2016 at 10:16AM

22
#469 - Atrament / @Atrament

05/11/2016 at 02:04PM

22
#470 - Vivek Bose / @Strangelich

05/11/2016 at 03:50PM

22
#471 - Patrick Knosowski / @KnoP8024

05/11/2016 at 09:30PM

22
#472 - kalq / @KamilKraszewski

05/12/2016 at 03:24AM

22
#473 - Jens / @jensbodal

05/12/2016 at 07:03AM

22
#474 - Victorien Lorcy / @LorcyVictorien

05/12/2016 at 09:01AM

22
#475 - Artūras Zakrevskis / @AZakrevskis

05/12/2016 at 02:42PM

22
#476 - Tautvilas / @TautviIas

05/12/2016 at 02:43PM

22
#477 - Arijus / @argshook

05/12/2016 at 02:43PM

22
#478 - Majo / @majodurco

05/13/2016 at 09:17PM

22
#479 - Slawek Zachcial / @SlawekZachcial

05/17/2016 at 06:20AM

22
#480 - vic © / @2r2w

05/19/2016 at 03:25PM