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):
37
#6571 - Sander Roosingh / @sjroosingh

10/14/2019 at 03:04PM

37
#6572 - Nick Shatilo / @bestervuld

11/07/2019 at 08:30PM

37
#6573 - Adriaan / @abeiertz

11/08/2019 at 02:57PM

37
#6574 - Maximiliano Greco / @mmngreco

11/09/2019 at 08:43PM

37
#6575 - Aaron Harris / @TheJoyOfPython

12/01/2019 at 04:57PM

37
#6576 - Username77177 / @username77177

01/17/2020 at 08:34PM

37
#6577 - Eric Robinson / @drericrobinson

02/21/2020 at 03:51AM

37
#6578 - Alex Rossi / @rxrossi

03/19/2020 at 12:14PM

37
#6579 - Osama Abdelsatar / @Osa_ahlawy

03/20/2020 at 11:36PM

37
#6580 - Philip R. Rothschild / @Kitten_Popo

04/01/2020 at 11:51AM

37
#6581 - 5h3ll0 / @5h3ll0

04/02/2020 at 09:59AM

37
#6582 - 3vilc00kie / @3vilc00kie

04/25/2020 at 04:57AM

37
#6583 - Adam Haynes / @camomonkeyboy

05/08/2020 at 12:10AM

37
#6584 - Brian Greenhill / @bcgreenhill

05/15/2020 at 12:37PM

37
#6585 - Richard Bagshaw / @bagwaa

05/16/2020 at 06:07PM

37
#6586 - Zhuo Zhang / @i2huer

06/28/2020 at 02:01AM

37
#6587 - Just Alerik / @Just_Alerik

09/18/2020 at 03:19AM

37
#6588 - Dat / @datdhuynh

11/11/2020 at 05:08PM

37
#6589 - Lolly / @Lolly92243972

11/16/2020 at 04:17PM

38
#6590 - Jeevan M R / @jee1mr

10/08/2015 at 08:33PM

38
#6591 - Tommy Lee / @Tomcentrate

10/13/2015 at 09:15PM

38
#6592 - Benedict Hobart / @superbenhobart

10/26/2015 at 05:50AM

38
#6593 - amol khatri / @khatri_amol

11/01/2015 at 05:40AM

38
#6594 - Javier Rey / @vierja

11/14/2015 at 12:17AM

38
#6595 - Chris Grantham / @crgrantham

11/18/2015 at 04:17PM

38
#6596 - Harrison B / @HarrisonBBBB

11/24/2015 at 01:27AM

38
#6597 - Theodore DeRego / @tedsta0

11/30/2015 at 09:48PM

38
#6598 - matty / @matty_books

12/26/2015 at 06:53AM

38
#6599 - EggplantLove / @SaladEggplant

02/17/2016 at 03:27PM

38
#6600 - Marco Gentili / @mgentili2

04/24/2016 at 01:46AM