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

5565 active golfers, 24834 entries

Leaderboard (lowest score wins):
22
#571 - Mikołaj Sacha / @mikolajsacha

08/07/2016 at 06:00PM

22
#572 - Eddie Elizondo / @eddie_elizondo

08/07/2016 at 11:15PM

22
#573 - Marek Wawrzos / @putisPenser

08/08/2016 at 07:18AM

22
#574 - ¼im / @14im

08/08/2016 at 09:25PM

22
#575 - Daniel and Valerie / @daniel_and_val

08/09/2016 at 08:00AM

22
#576 - Josh Samuelson / @JoshSamuelson

08/09/2016 at 10:17PM

22
#577 - Byron Ellacott / @codebje

08/10/2016 at 02:22AM

22
#578 - 7r6a2l / @7r6a2l

08/10/2016 at 02:50AM

22
#579 - Daniel Kukuła / @dkuku

08/10/2016 at 08:53AM

22
#580 - Soumya Ghosh / @ohmyghosh42

08/10/2016 at 12:36PM

22
#581 - labreck / @labreck4

08/10/2016 at 01:40PM

22
#582 - apan apansson / @apanapanssonapa

08/10/2016 at 04:48PM

22
#583 - Jess Wong / @Jess199Jess

08/10/2016 at 05:19PM

22
#584 - Quatrix / @Quatrix

08/10/2016 at 05:50PM

22
#585 - Maxime Reis / @MaximeReis

08/11/2016 at 03:58PM

22
#586 - William Robson / @wnrbs

08/11/2016 at 08:42PM

22
#587 - exp977 / @exp977

08/12/2016 at 11:56AM

22
#588 - Michael Brailsford / @brailsmt

08/12/2016 at 02:48PM

22
#589 - Antoni Villalonga / @friki

08/15/2016 at 10:18AM

22
#590 - Felipe Oliveira / @felipecvo

08/18/2016 at 01:02PM

22
#591 - Jason Olson / @jolson88

08/19/2016 at 11:19AM

22
#592 - Paulo Dalla Santa / @pdallasanta

08/19/2016 at 06:12PM

22
#593 - Winfried Puchinger / @winpuc

08/19/2016 at 08:23PM

22
#594 - David Stensland / @DavidStensland

08/20/2016 at 03:53AM

22
#595 - daibi2 / @Daibi2Zheng

08/20/2016 at 05:23AM

22
#596 - Andrew / @PickledCupcakes

08/20/2016 at 09:09AM

22
#597 - Jayr Magave / @jmagave

08/20/2016 at 07:03PM

22
#598 - Maxim Pertsov / @maxim_pertsov

08/21/2016 at 07:20AM

22
#599 - Sarath Chandra / @csc111vs

08/21/2016 at 07:55AM

22
#600 - Stanislav / @prstad

08/22/2016 at 07:32AM