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

6039 active golfers, 27118 entries

Leaderboard (lowest score wins):
37
#5641 - Aaron Harris / @TheJoyOfPython

12/01/2019 at 04:57PM

38
#5642 - Jeevan M R / @jee1mr

10/08/2015 at 08:33PM

38
#5643 - Tommy Lee / @Tomcentrate

10/13/2015 at 09:15PM

38
#5644 - Benedict Hobart / @superbenhobart

10/26/2015 at 05:50AM

38
#5645 - amol khatri / @khatri_amol

11/01/2015 at 05:40AM

38
#5646 - Javier Rey / @vierja

11/14/2015 at 12:17AM

38
#5647 - Chris Grantham / @crgrantham

11/18/2015 at 04:17PM

38
#5648 - Harrison B / @HarrisonBBBB

11/24/2015 at 01:27AM

38
#5649 - Theodore DeRego / @tedsta0

11/30/2015 at 09:48PM

38
#5650 - matty / @matty_books

12/26/2015 at 06:53AM

38
#5651 - EggplantLove / @SaladEggplant

02/17/2016 at 03:27PM

38
#5652 - Marco Gentili / @mgentili2

04/24/2016 at 01:46AM

38
#5653 - Sergey Sudakovich / @ssudakovich

05/02/2016 at 06:36PM

38
#5654 - Jeppe Larsen / @jwldk

05/03/2016 at 10:44AM

38
#5655 - Ilona / @ilonakoda

05/29/2016 at 03:34AM

38
#5656 - Bambusbjörn / @zwoUndPfirsich

05/29/2016 at 04:15PM

38
#5657 - ZARU(ざる@さくらば) / @zaru

06/28/2016 at 09:01AM

38
#5658 - Luz Unda / @luzmaun

07/06/2016 at 05:02PM

38
#5659 - GINN / @fthRY9SF78ZgJCk

07/20/2016 at 07:37AM

38
#5660 - 이선협 / @kciter

09/01/2016 at 04:44AM

38
#5661 - Aaron Dershem / @ajdershem

10/04/2016 at 11:48PM

38
#5662 - qinyuhang / @Har1g

10/16/2016 at 01:47PM

38
#5663 - holy_sin / @0zero0

12/09/2016 at 07:11AM

38
#5664 - William Sturgiss / @SturgissWilliam

01/16/2017 at 09:53PM

38
#5665 - Giviz / @giviz

03/01/2017 at 08:34PM

38
#5666 - Jonah Mandli / @jmandli12

04/19/2017 at 11:05PM

38
#5667 - moriancumer / @moriancumer

04/20/2017 at 02:59PM

38
#5668 - Akostrikov / @akostrikov

04/21/2017 at 05:26PM

38
#5669 - Niranjan S / @niranjan8192

05/30/2017 at 08:20PM

38
#5670 - Forrest Dworsky / @ForrestDworsky

08/01/2017 at 05:07PM