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
#6451 - Patrik Görling / @whurval

10/14/2019 at 09:20AM

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

10/14/2019 at 09:48AM

35
#6453 - Udalny / @Udalny1

10/14/2019 at 07:54PM

35
#6454 - Arian Moslem / @ArianMoslem1

10/18/2019 at 12:26AM

35
#6455 - roemermeier / @roemermeier

10/18/2019 at 03:49PM

35
#6456 - Trevor Fehrman / @TrevorFehrman

10/24/2019 at 09:36PM

35
#6457 - fewfold / @fewfold

11/06/2019 at 01:03AM

35
#6458 - Manu Alibay / @AlibayManu

11/19/2019 at 10:51AM

35
#6459 - Danny Harding / @dannyharding10_

11/20/2019 at 05:21PM

35
#6460 - chris bailey / @chrisbailey

12/02/2019 at 02:56AM

35
#6461 - David Ritchie / @deritchie

12/03/2019 at 10:36PM

35
#6462 - August Nejudne / @AugustNejudne

12/14/2019 at 09:16AM

35
#6463 - David Irvine / @metaquestions

12/30/2019 at 06:12PM

35
#6464 - Александр Шарипов / @tehadawest

01/03/2020 at 08:15PM

35
#6465 - James Hessin / @JamesHessin

01/05/2020 at 11:33PM

35
#6466 - Ma Sungjun / @firegun17

01/09/2020 at 01:26AM

35
#6467 - David Guevara / @LordCraftzDz

01/11/2020 at 12:46AM

35
#6468 - grug / @_grug

01/29/2020 at 01:14PM

35
#6469 - T5seconds / @T5seconds1

02/21/2020 at 07:00PM

35
#6470 - Ram Sreevaths / @RSreevaths

03/02/2020 at 06:00AM

35
#6471 - Zander / @zanderk

03/08/2020 at 01:52PM

35
#6472 - Christopher Kolstad / @chriswk

03/11/2020 at 07:55AM

35
#6473 - Agustino Thadeus / @agustinothadeus

03/26/2020 at 09:25PM

35
#6474 - I Use Arch / @arch_use

04/03/2020 at 09:39AM

35
#6475 - Nick Lee / @TooManyNickLees

04/04/2020 at 03:35PM

35
#6476 - Martin Nordgren / @MartinJNordgren

04/06/2020 at 11:05AM

35
#6477 - vimmer / @vimmer14

04/15/2020 at 02:13PM

35
#6478 - Elias Al-Tai / @EliasAltai

04/21/2020 at 04:55PM

35
#6479 - myvimgolf / @myvimgolf

05/01/2020 at 03:20PM

35
#6480 - x / @am_zzz_zzz

05/11/2020 at 05:21AM