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

6710 active golfers, 30302 entries

Leaderboard (lowest score wins):
33
#5671 - joyce / @fhuiwfjj

02/22/2020 at 09:17AM

33
#5672 - Barrett Hafner / @barretthafner

02/29/2020 at 10:13PM

33
#5673 - Metropolitan Magazine / @MMagazineItalia

03/06/2020 at 05:52PM

33
#5674 - Fernando Serboncini / @fserb

03/07/2020 at 04:08PM

33
#5675 - Maruf Jony / @marufjony

03/15/2020 at 04:30PM

33
#5676 - gnuffer / @gnuffer2

03/19/2020 at 09:54AM

33
#5677 - Spencer Anderson / @Narbulus

03/19/2020 at 07:57PM

33
#5678 - Arda Şener / @ardasenercs

04/01/2020 at 04:16PM

33
#5679 - Вова Соколович / @vovasokoll

04/04/2020 at 03:56AM

33
#5680 - giursino / @giursino1

04/15/2020 at 09:35AM

33
#5681 - dotvimrc / @dotvimrc1

05/01/2020 at 04:34PM

33
#5682 - Daniel Power / @DanielPowerNL

05/05/2020 at 01:14AM

33
#5683 - Axel / @Axel07930943

05/05/2020 at 04:27AM

33
#5684 - ол ов о / @2dTyjFurC1MKMvd

05/08/2020 at 12:04PM

33
#5685 - Justin Hurst / @jryanhurst

05/12/2020 at 04:22PM

33
#5686 - 翼士六高达 / @9dTFbiwyHjPmSY9

05/13/2020 at 12:45PM

33
#5687 - fang. / @dfangshuo

05/31/2020 at 07:22PM

33
#5688 - Rishi Javia / @RishiJavia

06/01/2020 at 07:25PM

33
#5689 - Martin Landsem / @landsematwork

06/15/2020 at 10:25AM

33
#5690 - { allan serna } / @allaneserna

06/22/2020 at 04:01AM

34
#5691 - Ferdev vimgolf / @fergvimgolf

07/26/2015 at 07:34AM

34
#5692 - Dawid retkiewicz / @dawret

08/21/2015 at 09:56AM

34
#5693 - valerian dorcy / @dorcy_v

09/01/2015 at 09:34AM

34
#5694 - Joachim / @errrsooo

09/01/2015 at 10:29PM

34
#5695 - 456345234123 / @456345234123

09/10/2015 at 07:00PM

34
#5696 - Peter Debelak / @peter_debelak

09/18/2015 at 05:38PM

34
#5697 - Sebastian Piotrowski / @sppiotrowski1

09/22/2015 at 04:55PM

34
#5698 - David / @multikaos

09/28/2015 at 02:44PM

34
#5699 - Jeff May / @jnmay87

10/01/2015 at 04:58AM

34
#5700 - The Realest™ / @kurigomi

10/14/2015 at 05:33AM