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

5125 active golfers, 22710 entries

Leaderboard (lowest score wins):
22
#391 - lescher jb / @jblescher

03/01/2016 at 08:27PM

22
#392 - Caleb Roberts / @calebmail2012

03/01/2016 at 09:05PM

22
#393 - Michel Ganguin / @tinycrazyfish

03/02/2016 at 09:22AM

22
#394 - Tomasz Walotek / @uolot

03/04/2016 at 10:34AM

22
#395 - Dimitar Dimitrov / @kurkale6ka

03/04/2016 at 02:48PM

22
#396 - Sébastien Vincent / @shinmei

03/05/2016 at 11:45AM

22
#397 - Judy / @Bibilidibipi

03/05/2016 at 11:37PM

22
#398 - John Brown / @ThisIsJohnBrown

03/06/2016 at 02:24AM

22
#399 - Piotr Madaliński / @MadalinskiPiotr

03/06/2016 at 04:06AM

22
#400 - Barry Haughey / @BarryHaughey

03/06/2016 at 09:17AM

22
#401 - Willem Siers / @willemsiers

03/07/2016 at 11:58AM

22
#402 - Hao Chen / @Chen_Hao

03/09/2016 at 02:18AM

22
#403 - Trey Thomas / @treythomas123

03/10/2016 at 04:00AM

22
#404 - zealotrush / @zealotrush

03/11/2016 at 03:35AM

22
#405 - Nico Rodsevich / @NicoRodsevich

03/12/2016 at 07:17PM

22
#406 - Wistan Chou / @wisty97

03/13/2016 at 05:35AM

22
#407 - Yahyalexandre33 / @yahyalexandre33

03/15/2016 at 12:07AM

22
#408 - Mike G / @MikeG39938619

03/15/2016 at 12:13PM

22
#409 - Fraser Cormack / @frasercrmck

03/15/2016 at 06:01PM

22
#410 - DJ Pelland / @dJ_pelland

03/15/2016 at 08:20PM

22
#411 - David Jr / @DmcdonnelJr

03/15/2016 at 09:23PM

22
#412 - tullie / @tulliemurrell

03/17/2016 at 06:35AM

22
#413 - Niko Myllynen / @spktklr

03/17/2016 at 05:30PM

22
#414 - Filippos K. / @filkaris

03/18/2016 at 01:53PM

22
#415 - Jonathan Taylor / @Jonyonson

03/19/2016 at 04:39AM

22
#416 - Joey Marianer / @roie_m

03/19/2016 at 04:15PM

22
#417 - glepha / @glepha_vim

03/21/2016 at 04:49AM

22
#418 - Tose / @Toseim

03/21/2016 at 01:50PM

22
#419 - Neelo / @Neelo_Bullet

03/22/2016 at 04:16PM

22
#420 - Yanis KHORSI / @YanisKHORSI

03/23/2016 at 10:18PM