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

5882 active golfers, 26397 entries

Leaderboard (lowest score wins):
22
#721 - thialfihar / @thialfihar

11/20/2016 at 11:35AM

22
#722 - Jon Louie / @jjisnow

11/23/2016 at 07:30AM

22
#723 - BlackCap / @BlackCapCoder

11/24/2016 at 12:45AM

22
#724 - Bart / @oneofmanybarts

11/25/2016 at 09:28AM

22
#725 - Wessel Sinnema / @wsinnema

11/26/2016 at 08:47AM

22
#726 - Apox / @apox159

11/26/2016 at 01:33PM

22
#727 - Jim Johnson / @DAS_EBON_HAWK

11/27/2016 at 03:48AM

22
#728 - Ilya Glotov / @ilyaglotov

11/29/2016 at 09:59PM

22
#729 - Roger Guldbrandsen / @kinbiko

11/29/2016 at 10:32PM

22
#730 - Sam Noedel / @alphanotmeric

11/30/2016 at 04:36AM

22
#731 - th / @tithrx

12/01/2016 at 12:10PM

22
#732 - kodemaan / @kodemaan

12/01/2016 at 09:45PM

22
#733 - Markus Flatscher / @mflat

12/05/2016 at 01:06AM

22
#734 - Victor Chibotaru / @tch1bo

12/05/2016 at 01:02PM

22
#735 - Liam S Ismail / @AC01Y

12/06/2016 at 02:38AM

22
#736 - monster8 / @monster8

12/06/2016 at 07:06AM

22
#737 - VivienVandaele / @VandaeleVivien

12/10/2016 at 04:22PM

22
#738 - Nick Pope / @ngnpope

12/13/2016 at 05:55PM

22
#739 - LiquidsebTest / @LiquidsebTest

12/14/2016 at 11:17AM

22
#740 - wes / @_weslly

12/15/2016 at 04:51PM

22
#741 - Liam Goodacre / @goodacre_liam

12/15/2016 at 07:22PM

22
#742 - パンタ・レイ / @vintersn0w

12/16/2016 at 05:18AM

22
#743 - Douglas Roper / @dougdroper

12/16/2016 at 02:26PM

22
#744 - Andrew Huang / @TDAlgory

12/18/2016 at 07:24AM

22
#745 - Andrew Lewis / @droosec

12/21/2016 at 03:59PM

22
#746 - Jan Eisenhauer / @EisenhauerJan

12/21/2016 at 10:56PM

22
#747 - Anton / @stalheiman

12/22/2016 at 02:25PM

22
#748 - さよきみ / @MrIn1121

12/22/2016 at 05:00PM

22
#749 - Tuxi Tux / @MrKrautee

12/22/2016 at 07:38PM

22
#750 - Anakin / @xdxter

12/23/2016 at 05:45AM