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

7239 active golfers, 32758 entries

Leaderboard (lowest score wins):
35
#6481 - ☭☭☭☭☭🇧🇷☭☭☭☭☭ / @CoachComunista

05/13/2020 at 11:36PM

35
#6482 - David Cherednik / @david_cherednik

05/22/2020 at 11:36AM

35
#6483 - Yinghan Tan / @YinghanTan

05/30/2020 at 01:22AM

35
#6484 - hoaaangolo / @hoaaangolo

06/07/2020 at 05:55PM

35
#6485 - bichoverde / @bichoverde5

06/25/2020 at 09:17AM

35
#6486 - Pg / @pp5311006

07/09/2020 at 02:29PM

35
#6487 - asdf / @asdf64638747

07/20/2020 at 01:28AM

35
#6488 - James Blanton / @jamespblanton

07/31/2020 at 06:11PM

35
#6489 - Nishal Kulkarni / @nishalkulkarni

08/19/2020 at 05:25AM

35
#6490 - Fernando Quant / @FernandoQuantRS

08/19/2020 at 03:24PM

35
#6491 - Charlie Kruczko / @CharlieKruczko

09/07/2020 at 10:29PM

35
#6492 - Abhishek Sriraman / @asriraman

09/28/2020 at 04:20AM

35
#6493 - Lorenzo Swank / @lswank

10/19/2020 at 07:53AM

35
#6494 - Prabhat Ranjan / @prabhatr27

10/29/2020 at 08:52AM

35
#6495 - Murali Patteboyina / @marxpert

11/04/2020 at 03:09AM

35
#6496 - Shinjini Ghosh / @ShinjiniGhosh00

12/03/2020 at 12:35AM

35
#6497 - scsibug / @scsibug

12/30/2020 at 05:25PM

35
#6498 - Reid Levesque / @Reid_Levesque

04/29/2021 at 02:51PM

36
#6499 - Addison White / @AddisonPWhite

08/08/2015 at 12:10AM

36
#6500 - ooJava / @GitCheckout

08/17/2015 at 12:53AM

36
#6501 - J Andrew McCormick / @jandrewmc

08/18/2015 at 02:51AM

36
#6502 - jaya wijono / @jayzzwijono55

08/19/2015 at 05:21AM

36
#6503 - cognoscibilis / @cognoscibilis

08/21/2015 at 09:27AM

36
#6504 - Sambit Padhi / @sambitpadhi93

10/02/2015 at 09:34AM

36
#6505 - Anindya Sharma / @Sharma_Anindya

10/21/2015 at 04:23PM

36
#6506 - Oser / @thegolfer8

01/01/2016 at 01:02AM

36
#6507 - Vlad Temian ⚒ / @vtemian

01/03/2016 at 11:20PM

36
#6508 - Pedro Franceschi / @pedroh96

01/12/2016 at 08:53PM

36
#6509 - Antonio García / @AntonioGarRod

01/19/2016 at 12:24PM

36
#6510 - James Vaughan / @vaughanj10

01/21/2016 at 05:47PM