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

7068 active golfers, 32041 entries

Leaderboard (lowest score wins):
23
#2521 - Stefan Heyder / @Astheny_

09/17/2018 at 11:40AM

23
#2522 - Brandon Hops / @BrandonHops

09/29/2018 at 06:05PM

23
#2523 - Julian Okuyiga / @julianokuyiga

10/05/2018 at 10:54PM

23
#2524 - Stefan Stutz / @0VIIXI

10/10/2018 at 07:44PM

23
#2525 - Dima Matrohin / @wo_ogy

10/25/2018 at 09:29PM

23
#2526 - nenuon / @nenuon61

10/28/2018 at 02:26AM

23
#2527 - Noah Epstein / @NoahJEpstein

10/30/2018 at 03:54AM

23
#2528 - โœ–โŽโœ–๐”ฉ'๐”’๐”ฉ๐”ฆ๐”ณ๐”ขโœ–โŽโœ– / @olivschwab

10/30/2018 at 10:04AM

23
#2529 - Zenghanzhang / @hzengroger

11/10/2018 at 06:01AM

23
#2530 - Matze / @ebaharilikult

11/19/2018 at 06:56AM

23
#2531 - noffle ๐ŸŒฑ / @noffle

11/22/2018 at 05:03PM

23
#2532 - Christoffer Nilsson / @chrnils

11/24/2018 at 12:25PM

23
#2533 - Performa / @performa6400

11/28/2018 at 04:05PM

23
#2534 - Travis Wulff / @Ffluwsivart

12/15/2018 at 05:47AM

23
#2535 - Bart Kleijngeld / @BartKleijngeld

12/23/2018 at 10:22PM

23
#2536 - Jonny Wilson / @thejondom

12/26/2018 at 08:21PM

23
#2537 - segfaultใƒŽใ‚นใ‚นใƒก / @umaiumi

01/13/2019 at 05:31AM

23
#2538 - Shahin Mohammad Sali / @shaahiinms

02/05/2019 at 10:06PM

23
#2539 - noname / @noname75810867

02/09/2019 at 06:14AM

23
#2540 - Alexandre Pinho / @lxpnh98

02/11/2019 at 11:36PM

23
#2541 - Duke Du / @DukeDu2

03/19/2019 at 02:52AM

23
#2542 - Mark Stillwell / @marklee77

03/31/2019 at 10:57PM

23
#2543 - Bruno / @kerouanton

04/14/2019 at 07:49AM

23
#2544 - ow / @ow34480012

04/28/2019 at 09:52PM

23
#2545 - Quinn Collins / @Quinn00239061

05/06/2019 at 06:29PM

23
#2546 - jorge duran / @jduranroyo

05/18/2019 at 06:01PM

23
#2547 - shaz / @shaz30307204

05/23/2019 at 08:49AM

23
#2548 - Gar Morley / @garmorley

05/25/2019 at 09:13AM

23
#2549 - Ben M / @Sweet_Scientist

06/06/2019 at 02:40PM

23
#2550 - tPenguinLTG / @tpenguinltg

06/15/2019 at 02:42AM