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

5759 active golfers, 25756 entries

Leaderboard (lowest score wins):
22
#481 - Nafaa Boutefer / @Nafaabout

05/21/2016 at 05:34AM

22
#482 - (,,꒪꒫꒪,,) / @sneer

05/21/2016 at 01:36PM

22
#483 - Amit Shah / @Amwam

05/22/2016 at 04:04PM

22
#484 - Gabriel Tailor / @gabriel_tailor

05/24/2016 at 01:49PM

22
#485 - John Doe Sr. / @johndoe67890543

05/25/2016 at 12:08AM

22
#486 - Justin Snopek / @JustinSnopek

05/25/2016 at 07:30PM

22
#487 - Eli Zucker / @EliZucker

05/26/2016 at 02:18AM

22
#488 - Mika Väisänen / @IamMikaVaisanen

05/26/2016 at 11:23AM

22
#489 - Nobody. Really. / @KubaNobody

05/27/2016 at 12:43PM

22
#490 - Herbert Kagumba / @HabuKagumba

05/30/2016 at 10:52AM

22
#491 - pwahs / @PwahsWeisz

06/01/2016 at 10:28AM

22
#492 - Jerome Abela / @Jerome_A

06/01/2016 at 02:41PM

22
#493 - Andreas Anheuser / @AndreasAnheuser

06/01/2016 at 05:23PM

22
#494 - Taras Kolodny / @trskldn

06/02/2016 at 12:56AM

22
#495 - CF / @obvman

06/03/2016 at 07:30AM

22
#496 - Mattias Prada / @apelsinet

06/03/2016 at 07:16PM

22
#497 - Calvin Atlan / @calvinatlan

06/04/2016 at 05:52AM

22
#498 - Zach Boatrite / @ZachBoatrite

06/05/2016 at 04:12AM

22
#499 - tgmeng / @lazy_fabric

06/07/2016 at 03:47AM

22
#500 - Roland Schatz / @fl_Overmind

06/07/2016 at 12:26PM

22
#501 - eyci ye / @eyciye

06/07/2016 at 03:02PM

22
#502 - Ameen P / @Ameen_P1

06/07/2016 at 04:50PM

22
#503 - Sebastian Wilgosz / @wilgoszpl

06/09/2016 at 12:22PM

22
#504 - Peter Labus / @PeterLabus

06/09/2016 at 01:00PM

22
#505 - Tai Le Tien / @letientai299

06/09/2016 at 04:55PM

22
#506 - Pablo R. Dinella / @pablordinella

06/10/2016 at 02:54AM

22
#507 - Noud Speijcken / @noudspeijcken

06/10/2016 at 10:32AM

22
#508 - Dave O'Keeffe / @daveok

06/10/2016 at 02:39PM

22
#509 - christopher papke / @kordex0

06/12/2016 at 01:07AM

22
#510 - jan sos / @jann6373

06/12/2016 at 02:08PM