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

6042 active golfers, 27133 entries

Leaderboard (lowest score wins):
35
#5431 - Emanuele Aliverti / @memeAliverti

08/01/2019 at 07:17AM

35
#5432 - Alberto Pose / @thepose

08/18/2019 at 08:27AM

35
#5433 - Alexey Kuntsevich / @jezzarax

08/28/2019 at 12:53PM

35
#5434 - Ivan / @SpiritHNTR

08/30/2019 at 06:18PM

35
#5435 - Wojciech Jurkowski / @yierzy

09/22/2019 at 07:36PM

35
#5436 - Moje dzieje / @Moje_dzieje

10/06/2019 at 08:45PM

35
#5437 - ahahsod / @ahahsod

10/07/2019 at 06:47AM

35
#5438 - César Cordeiro Rosa / @csrcordeiro

10/08/2019 at 12:52AM

35
#5439 - Nick Argyle / @nickargyle

10/13/2019 at 02:33AM

35
#5440 - Patrik Görling / @whurval

10/14/2019 at 09:20AM

35
#5441 - @-----{} / @DavidAr99288709

10/14/2019 at 09:48AM

35
#5442 - Udalny / @Udalny1

10/14/2019 at 07:54PM

35
#5443 - Arian Moslem / @ArianMoslem1

10/18/2019 at 12:26AM

35
#5444 - roemermeier / @roemermeier

10/18/2019 at 03:49PM

35
#5445 - Trevor Fehrman / @TrevorFehrman

10/24/2019 at 09:36PM

35
#5446 - fewfold / @fewfold

11/06/2019 at 01:03AM

35
#5447 - Manu Alibay / @AlibayManu

11/19/2019 at 10:51AM

35
#5448 - Danny Harding / @dannyharding10_

11/20/2019 at 05:21PM

35
#5449 - chris bailey / @chrisbailey

12/02/2019 at 02:56AM

35
#5450 - David Ritchie / @deritchie

12/03/2019 at 10:36PM

36
#5451 - Scott Traver / @ScottTraver

07/31/2015 at 03:06PM

36
#5452 - Addison White / @AddisonPWhite

08/08/2015 at 12:10AM

36
#5453 - ooJava / @GitCheckout

08/17/2015 at 12:53AM

36
#5454 - J Andrew McCormick / @jandrewmc

08/18/2015 at 02:51AM

36
#5455 - jaya wijono / @jayzzwijono55

08/19/2015 at 05:21AM

36
#5456 - cognoscibilis / @cognoscibilis

08/21/2015 at 09:27AM

36
#5457 - Sambit Padhi / @sambitpadhi93

10/02/2015 at 09:34AM

36
#5458 - Anindya Sharma / @Sharma_Anindya

10/21/2015 at 04:23PM

36
#5459 - Oser / @thegolfer8

01/01/2016 at 01:02AM

36
#5460 - Vlad Temian ⚒ / @vtemian

01/03/2016 at 11:20PM