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

5836 active golfers, 26168 entries

Leaderboard (lowest score wins):
22
#631 - BLACKODE / @tweetblackode

09/21/2016 at 10:42AM

22
#632 - ♜ Pepe Doval / @pepellou

09/21/2016 at 03:27PM

22
#633 - PaulCh / @__paulch

09/21/2016 at 11:25PM

22
#634 - Dawn Wang / @WShuguang

09/22/2016 at 08:01AM

22
#635 - Alexander Borysov / @ab99c5e2

09/22/2016 at 01:26PM

22
#636 - Chance Gibbs / @CautiousCarlton

09/22/2016 at 06:51PM

22
#637 - Nico / @_Nico_Caro

09/22/2016 at 09:48PM

22
#638 - Smeg Head / @TomWaitsIsMyGod

09/28/2016 at 12:05PM

22
#639 - James Pringle / @jameskpringle

09/28/2016 at 03:42PM

22
#640 - Netrisk Cool / @C00lt0

09/29/2016 at 02:31PM

22
#641 - 戴杰 / @gundamwingsdj

09/30/2016 at 04:24PM

22
#642 - Andy Novocin / @AndyNovocin

09/30/2016 at 09:27PM

22
#643 - manbogot / @gmanbor

10/01/2016 at 08:14AM

22
#644 - Nikos Kwlos / @Kwlos_Calling

10/01/2016 at 12:35PM

22
#645 - Łukasz Daniluk / @lukaszd93

10/01/2016 at 01:13PM

22
#646 - Fumon / @Fumon

10/02/2016 at 06:45PM

22
#647 - Chris Hampson / @ChrisHampsonGTD

10/03/2016 at 06:53AM

22
#648 - joe taylor / @popformula

10/03/2016 at 12:57PM

22
#649 - Will Handley / @falsewhenquined

10/04/2016 at 06:24PM

22
#650 - Vadim Petrov / @downwithbgp

10/04/2016 at 11:57PM

22
#651 - yorkbai / @baiyqmzqbl

10/05/2016 at 03:00PM

22
#652 - VectorFrog / @vectorFrog

10/05/2016 at 04:38PM

22
#653 - david quarles / @davidequarles

10/06/2016 at 05:08AM

22
#654 - David Fonseca / @ddfonseca6

10/06/2016 at 03:57PM

22
#655 - gogogo / @zzingzzong

10/07/2016 at 07:18AM

22
#656 - 류장근 / @hero77geni

10/08/2016 at 11:56AM

22
#657 - trx / @trxdbg

10/09/2016 at 02:27AM

22
#658 - A Random Cider / @jtxyz_

10/09/2016 at 11:06AM

22
#659 - mk61 / @aringba

10/10/2016 at 11:26AM

22
#660 - Michael Prouty / @MProuts

10/10/2016 at 05:32PM