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, 24024 entries

Leaderboard (lowest score wins):
22
#511 - kalq / @KamilKraszewski

05/12/2016 at 03:24AM

22
#512 - Jens / @jensbodal

05/12/2016 at 07:03AM

22
#513 - Victorien Lorcy / @LorcyVictorien

05/12/2016 at 09:01AM

22
#514 - Artūras Zakrevskis / @AZakrevskis

05/12/2016 at 02:42PM

22
#515 - Tautvilas / @TautviIas

05/12/2016 at 02:43PM

22
#516 - Arijus / @argshook

05/12/2016 at 02:43PM

22
#517 - Majo / @majodurco

05/13/2016 at 09:17PM

22
#518 - Slawek Zachcial / @SlawekZachcial

05/17/2016 at 06:20AM

22
#519 - vic © / @2r2w

05/19/2016 at 03:25PM

22
#520 - Nafaa Boutefer / @Nafaabout

05/21/2016 at 05:34AM

22
#521 - (,,꒪꒫꒪,,) / @sneer

05/21/2016 at 01:36PM

22
#522 - Amit Shah / @Amwam

05/22/2016 at 04:04PM

22
#523 - Gabriel Tailor / @gabriel_tailor

05/24/2016 at 01:49PM

22
#524 - John Doe Sr. / @johndoe67890543

05/25/2016 at 12:08AM

22
#525 - Justin Snopek / @JustinSnopek

05/25/2016 at 07:30PM

22
#526 - Eli Zucker / @EliZucker

05/26/2016 at 02:18AM

22
#527 - Mika Väisänen / @IamMikaVaisanen

05/26/2016 at 11:23AM

22
#528 - Nobody. Really. / @KubaNobody

05/27/2016 at 12:43PM

22
#529 - Herbert Kagumba / @HabuKagumba

05/30/2016 at 10:52AM

22
#530 - pwahs / @PwahsWeisz

06/01/2016 at 10:28AM

22
#531 - Jerome Abela / @Jerome_A

06/01/2016 at 02:41PM

22
#532 - Andreas Anheuser / @AndreasAnheuser

06/01/2016 at 05:23PM

22
#533 - Taras Kolodny / @trskldn

06/02/2016 at 12:56AM

22
#534 - CF / @obvman

06/03/2016 at 07:30AM

22
#535 - Mattias Prada / @apelsinet

06/03/2016 at 07:16PM

22
#536 - Calvin Atlan / @calvinatlan

06/04/2016 at 05:52AM

22
#537 - Zach Boatrite / @ZachBoatrite

06/05/2016 at 04:12AM

22
#538 - tgmeng / @lazy_fabric

06/07/2016 at 03:47AM

22
#539 - Roland Schatz / @fl_Overmind

06/07/2016 at 12:26PM

22
#540 - eyci ye / @eyciye

06/07/2016 at 03:02PM