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
#121 - Irina Crystal / @irina_crystal

09/08/2015 at 01:15PM

22
#122 - Sebastien Charret / @SCharret

09/08/2015 at 05:04PM

22
#123 - Tamas Gal (Tom) / @tamasgal

09/09/2015 at 03:28PM

22
#124 - MikeT / @mik3t

09/09/2015 at 10:45PM

22
#125 - vimgolf jonnyb / @vimgolf_jonnyb

09/10/2015 at 10:57AM

22
#126 - Joey / @joeyism101

09/11/2015 at 01:18AM

22
#127 - Jiří Chára / @JiriChara

09/11/2015 at 07:39AM

22
#128 - Max M / @_maxmel

09/11/2015 at 05:15PM

22
#129 - Gerhard Gappmeier / @gergap

09/11/2015 at 07:45PM

22
#130 - Yann Vanhalewyn / @yannvanhalewyn

09/12/2015 at 05:26AM

22
#131 - Tom Houlé / @_tomhoule

09/13/2015 at 06:41AM

22
#132 - How Si Wei / @houxiwu

09/13/2015 at 10:57AM

22
#133 - 0e4ef622 / @0e4ef622

09/13/2015 at 01:10PM

22
#134 - AbleZhang / @Able_Zhang

09/14/2015 at 09:15AM

22
#135 - Ben Turner / @phantomwhale

09/15/2015 at 02:42AM

22
#136 - Slimior / @Slimior

09/15/2015 at 12:32PM

22
#137 - Jonathan Skeate / @jskeate

09/15/2015 at 04:38PM

22
#138 - Jason Schulz / @uxcn_

09/15/2015 at 08:32PM

22
#139 - Paulo H Baumann / @PauloBaumann

09/15/2015 at 10:26PM

22
#140 - PL / @petrlaitoch

09/15/2015 at 10:34PM

22
#141 - Alec Newman / @alecnwmn904

09/16/2015 at 03:58AM

22
#142 - andy / @andy08028451

09/16/2015 at 01:31PM

22
#143 - KONDR / @thekondr

09/16/2015 at 01:54PM

22
#144 - Kevin Merlin / @mp3merlin

09/16/2015 at 02:10PM

22
#145 - AppTakk! / @apptakk

09/16/2015 at 11:07PM

22
#146 - 浮云总是梦 / @cloudisdream

09/17/2015 at 03:35AM

22
#147 - Obviouscator / @obviouscator

09/17/2015 at 10:33AM

22
#148 - Smylers / @Smylers2

09/18/2015 at 08:23AM

22
#149 - Emil Styrke / @EStyrke

09/18/2015 at 11:34AM

22
#150 - Kai Yuan / @kentyuan

09/18/2015 at 11:57AM