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

5565 active golfers, 24834 entries

Leaderboard (lowest score wins):
22
#121 - Hesh / @heshihao

09/26/2015 at 05:49PM

22
#122 - Mike Adams / @davis_cromwell

09/26/2015 at 10:40PM

22
#123 - Andreas Carben / @meiner_eins

09/26/2015 at 11:03PM

22
#124 - Brian John Farrar / @Apotropaix

09/27/2015 at 12:55PM

22
#125 - David Lukeš / @dvldix

09/27/2015 at 04:42PM

22
#126 - Self Doc Code / @self_doc_code

09/27/2015 at 06:01PM

22
#127 - Jon Krause / @jkrause314

09/28/2015 at 12:47AM

22
#128 - Aravind Anbu / @aru777

09/28/2015 at 09:21AM

22
#129 - Kevin Ilphrin Pellet / @KevinIlphrin

09/28/2015 at 11:59AM

22
#130 - 이 철희 / @leechulhee95

09/30/2015 at 10:13AM

22
#131 - steved / @obstkisteKiwi

10/01/2015 at 07:13AM

22
#132 - Bjarni Þórisson / @hurrumanni

10/01/2015 at 10:18AM

22
#133 - pftb12345 / @pftb12345

10/02/2015 at 01:11AM

22
#134 - ardila.d.ardila / @ardiladardila1

10/02/2015 at 04:37AM

22
#135 - Steve Bitner / @fourbitbots

10/02/2015 at 07:21PM

22
#136 - Alexander Schlüter / @ArlecksHunt

10/02/2015 at 11:02PM

22
#137 - Julian Andrews / @NoLemurs

10/03/2015 at 04:15AM

22
#138 - Randomize / @Randomize46

10/03/2015 at 08:09PM

22
#139 - compuserved / @compuserved

10/04/2015 at 12:52AM

22
#140 - Joakim Andersson / @Th4Clown

10/04/2015 at 08:33AM

22
#141 - Luke Yeo / @henghonghung

10/04/2015 at 11:36PM

22
#142 - kokemayu / @kokemay8313

10/05/2015 at 03:01PM

22
#143 - Espen H. Kristensen / @bgosl

10/06/2015 at 04:02PM

22
#144 - Peter Shilliday / @pbshilliday

10/06/2015 at 06:06PM

22
#145 - David Lormor / @davidlormor

10/06/2015 at 10:13PM

22
#146 - Ben Crowder / @bencrowder

10/07/2015 at 01:51PM

22
#147 - Piotr Kowenzowski / @sacherus

10/07/2015 at 08:22PM

22
#148 - Sean Johnston / @esran

10/09/2015 at 10:15AM

22
#149 - Perry van Schaijk / @PvSchaijk

10/09/2015 at 11:14AM

22
#150 - Dirty Harry / @TateDirty

10/09/2015 at 01:50PM