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
#391 - hardaudit / @hardaudit

02/24/2016 at 04:07PM

22
#392 - antew / @antewcode

02/24/2016 at 09:37PM

22
#393 - Joseph Abrahams / @josephabrahams

02/26/2016 at 09:19PM

22
#394 - Daniel / @danielpie92

02/27/2016 at 08:49PM

22
#395 - Ralf Haffa / @fatslo

02/28/2016 at 12:49PM

22
#396 - Alex Coventry / @AlxCoventry

02/28/2016 at 05:29PM

22
#397 - lukhar / @_lukhar

02/29/2016 at 12:49AM

22
#398 - Charles Laber-Smith / @clabersmith

02/29/2016 at 02:16AM

22
#399 - Mark Saiget / @MarkSaiget

02/29/2016 at 06:16AM

22
#400 - Kevin Sapper / @kevin_sapper

03/01/2016 at 07:24AM

22
#401 - lescher jb / @jblescher

03/01/2016 at 08:27PM

22
#402 - Caleb Roberts / @calebmail2012

03/01/2016 at 09:05PM

22
#403 - Michel Ganguin / @tinycrazyfish

03/02/2016 at 09:22AM

22
#404 - Tomasz Walotek / @uolot

03/04/2016 at 10:34AM

22
#405 - Dimitar Dimitrov / @kurkale6ka

03/04/2016 at 02:48PM

22
#406 - Sébastien Vincent / @shinmei

03/05/2016 at 11:45AM

22
#407 - Judy / @Bibilidibipi

03/05/2016 at 11:37PM

22
#408 - John Brown / @ThisIsJohnBrown

03/06/2016 at 02:24AM

22
#409 - Piotr Madaliński / @MadalinskiPiotr

03/06/2016 at 04:06AM

22
#410 - Barry Haughey / @BarryHaughey

03/06/2016 at 09:17AM

22
#411 - Willem Siers / @willemsiers

03/07/2016 at 11:58AM

22
#412 - Hao Chen / @Chen_Hao

03/09/2016 at 02:18AM

22
#413 - Trey Thomas / @treythomas123

03/10/2016 at 04:00AM

22
#414 - zealotrush / @zealotrush

03/11/2016 at 03:35AM

22
#415 - Nico Rodsevich / @NicoRodsevich

03/12/2016 at 07:17PM

22
#416 - Wistan Chou / @wisty97

03/13/2016 at 05:35AM

22
#417 - Yahyalexandre33 / @yahyalexandre33

03/15/2016 at 12:07AM

22
#418 - Mike G / @MikeG39938619

03/15/2016 at 12:13PM

22
#419 - Fraser Cormack / @frasercrmck

03/15/2016 at 06:01PM

22
#420 - DJ Pelland / @dJ_pelland

03/15/2016 at 08:20PM