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

6061 active golfers, 27234 entries

Leaderboard (lowest score wins):
37
#5611 - Yuta UEKI / @ueki05

02/12/2018 at 08:51AM

37
#5612 - Shannon Brooks / @coder_shannon

03/29/2018 at 06:53PM

37
#5613 - 강그루 / @kidkkr

04/08/2018 at 05:27AM

37
#5614 - Karol Babioch / @kabab88

06/03/2018 at 09:08PM

37
#5615 - Priesemut / @Priesemut3

06/19/2018 at 07:32AM

37
#5616 - Lunar Gods Cry Too / @lunarsobs

06/29/2018 at 10:05PM

37
#5617 - j3ffyang / @j3ffyang

07/15/2018 at 03:06PM

37
#5618 - asdf / @asdf57316995

07/16/2018 at 09:37AM

37
#5619 - Mats Tage / @matstage

07/23/2018 at 05:55PM

37
#5620 - Evgeniy Abramov / @kioninja

08/30/2018 at 07:57AM

37
#5621 - ISUCON出る人居ませんか / @mactkg

08/30/2018 at 11:25AM

37
#5622 - Tim Guo / @GuoTim

09/05/2018 at 03:58PM

37
#5623 - mos7624 / @mos7624

09/07/2018 at 07:46AM

37
#5624 - pantoufle___ / @pantouf18750076

09/17/2018 at 01:42PM

37
#5625 - ふにゃ男 / @yangxun66

09/20/2018 at 01:36PM

37
#5626 - Bruce Adams / @bruceadams1054

10/06/2018 at 09:52AM

37
#5627 - Brad Kaltenbaum / @kaltenbaum

10/20/2018 at 10:25AM

37
#5628 - Kath Pobee-Norris / @KathPobeeNorris

11/07/2018 at 11:26AM

37
#5629 - Rui Ming Xiong / @RuiMingXiong1

11/11/2018 at 07:01PM

37
#5630 - martin aurelien / @martinaurelien5

11/14/2018 at 10:17AM

37
#5631 - Cole Hudson / @colejhudson

11/21/2018 at 05:37PM

37
#5632 - Oliver Wilkie / @oliwilks

11/29/2018 at 01:23AM

37
#5633 - Michael Thole / @mikethole

11/29/2018 at 01:23AM

37
#5634 - Oren Koriat / @KoriatOren

12/04/2018 at 04:13PM

37
#5635 - Calvin / @calveenlee

01/10/2019 at 06:00PM

37
#5636 - Casey Kalinowski / @Mediocre__Fred

01/16/2019 at 08:22PM

37
#5637 - m͈͕͇̙̻ͅa͎͍̩̼͈͙͔͜u̶̺s / @maus_

02/15/2019 at 07:09AM

37
#5638 - Nyarklathotep / @MaSalieri

02/18/2019 at 09:42PM

37
#5639 - sloppypapi / @sloppypapi5

02/19/2019 at 06:54PM

37
#5640 - Sean Connor / @seaconr

03/06/2019 at 07:23AM