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 5380 remaining solutions by signing in and submitting your own entry
#5381 KEBE Abdou Bigue / @KebeBigue - Score: 359 - 11/14/18 @ 11:15
jjjjjj<Esc>itemp var7<BS><BS><BS><BS><BS><BS><BS><BS><BS>*T<BS>temp var7 11j<BS><Esc>jj<Esc>iNex<BS>w text.k<BS><Esc>kkmllllll<CR><CR>kkllllllllllllluuU<Up><Up><Up><Down><Esc>I<Esc>I*T<BS>temp var7 11<Esc>jj<Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc>iNex<BS>w text.<Esc>kkllll<Esc>io<BS><Esc>llo<Esc>jjkjkllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllloj<BS><Esc>jllllllllloh<BS><Esc>h:Q<BS>wq<CR>

0 comments


Created by: @Flurrywinde

5381 active golfers, 24023 entries

Leaderboard (lowest score wins):
22
#151 - Henrik / @kirneh1986

09/18/2015 at 03:57PM

22
#152 - Pete Sevander / @Sevanteri

09/19/2015 at 09:11AM

22
#153 - Elias Kov / @e_kov

09/21/2015 at 01:20PM

22
#154 - No Thanks / @g11027393

09/21/2015 at 06:49PM

22
#155 - Dan Bee / @HIYARR

09/23/2015 at 06:44AM

22
#156 - Lifepillar / @lifepillar

09/23/2015 at 10:14AM

22
#157 - KoshrBacon / @KoshrBacon

09/24/2015 at 02:48AM

22
#158 - meribold / @mribld

09/25/2015 at 02:00AM

22
#159 - Ethan Madison / @_ethanmad

09/25/2015 at 04:37AM

22
#160 - Hesh / @heshihao

09/26/2015 at 05:49PM

22
#161 - Mike Adams / @davis_cromwell

09/26/2015 at 10:40PM

22
#162 - Andreas Carben / @meiner_eins

09/26/2015 at 11:03PM

22
#163 - Brian John Farrar / @Apotropaix

09/27/2015 at 12:55PM

22
#164 - David Lukeš / @dvldix

09/27/2015 at 04:42PM

22
#165 - Self Doc Code / @self_doc_code

09/27/2015 at 06:01PM

22
#166 - Jon Krause / @jkrause314

09/28/2015 at 12:47AM

22
#167 - Aravind Anbu / @aru777

09/28/2015 at 09:21AM

22
#168 - Kevin Ilphrin Pellet / @KevinIlphrin

09/28/2015 at 11:59AM

22
#169 - 이 철희 / @leechulhee95

09/30/2015 at 10:13AM

22
#170 - steved / @obstkisteKiwi

10/01/2015 at 07:13AM

22
#171 - Bjarni Þórisson / @hurrumanni

10/01/2015 at 10:18AM

22
#172 - pftb12345 / @pftb12345

10/02/2015 at 01:11AM

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

10/02/2015 at 04:37AM

22
#174 - Steve Bitner / @fourbitbots

10/02/2015 at 07:21PM

22
#175 - Alexander Schlüter / @ArlecksHunt

10/02/2015 at 11:02PM

22
#176 - Julian Andrews / @NoLemurs

10/03/2015 at 04:15AM

22
#177 - Randomize / @Randomize46

10/03/2015 at 08:09PM

22
#178 - compuserved / @compuserved

10/04/2015 at 12:52AM

22
#179 - Joakim Andersson / @Th4Clown

10/04/2015 at 08:33AM

22
#180 - Luke Yeo / @henghonghung

10/04/2015 at 11:36PM