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 7067 remaining solutions by signing in and submitting your own entry
#7068 Yushia Sou / @yuessiah - Score: 427 - 05/08/19 @ 16:47
VG<C-P><Esc><Esc>kkkkkkkkkkkVjjjjjjjjjjjjjjjjjjxi<50-53>*temp var1 0<CR>*temp var2 "hi"<CR>*temp var3 -1<CR>*temp var4 42<CR>*temp var5 "asdf"<CR>*temp var6 0<CR>*temp var7 11<CR><CR>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."<CR><CR>New text.<CR><CR>This challenge is just a simple movement and entering text at a certain place.<Esc>[201~jk<BS><BS><Esc> kk:wq<BS><BS>q<BS>wq<CR>

0 comments


Created by: @Flurrywinde

7068 active golfers, 32041 entries

Leaderboard (lowest score wins):
23
#2491 - SporadicLizard / @sporadiclizard

01/15/2018 at 02:43AM

23
#2492 - Patrick Stockwell / @patstockwell

01/29/2018 at 04:53AM

23
#2493 - John C Shea / @MHSSachems

01/29/2018 at 08:50PM

23
#2494 - Josu Oyanguren / @josuoyanguren

02/05/2018 at 02:00PM

23
#2495 - decko / @decko

02/15/2018 at 09:13PM

23
#2496 - thoughts / @bonchodiaries

02/17/2018 at 06:17PM

23
#2497 - Max Horn / @maexlich

03/02/2018 at 05:29PM

23
#2498 - Matthew Barry / @komputerwiz

03/10/2018 at 09:29PM

23
#2499 - danmakenoise / @danmakenoise

03/17/2018 at 12:28PM

23
#2500 - Brandon / @breaddevil

03/30/2018 at 08:11AM

23
#2501 - Rami Hovi / @hacker_lawyer

04/07/2018 at 07:46PM

23
#2502 - SciComp / @uwscicomp

04/25/2018 at 05:30PM

23
#2503 - Felipe Jacob / @FfJacob

04/26/2018 at 05:51AM

23
#2504 - Liam Wilkins / @CallMeWilkins

05/04/2018 at 01:45PM

23
#2505 - Jean-paul Barbier / @jpdobar

05/07/2018 at 03:34PM

23
#2506 - Golfy McGolferson / @mcgolferson

05/09/2018 at 02:12AM

23
#2507 - nSinus-R / @nSinusR

06/06/2018 at 12:42PM

23
#2508 - Wil Klauskinski / @WKlauskinski

06/16/2018 at 05:39AM

23
#2509 - Rao Zvorovski / @RaoZvorovski

06/19/2018 at 06:14AM

23
#2510 - NOT Takinashi / @TaleLore

06/24/2018 at 02:06AM

23
#2511 - sspan / @sspantz

07/01/2018 at 06:27AM

23
#2512 - みやざわ / @we1IRsyN6775t4H

07/01/2018 at 10:40AM

23
#2513 - Roman / @cdxyz

07/04/2018 at 06:56PM

23
#2514 - qed / @qed13308565

07/24/2018 at 04:42AM

23
#2515 - ハヤシ / @0__098

07/25/2018 at 02:26PM

23
#2516 - Yifan / @tr4656

07/31/2018 at 12:05AM

23
#2517 - Madelyn Freed / @EcoBummer

08/02/2018 at 06:20PM

23
#2518 - Lai Bai / @laibai321

08/16/2018 at 11:05AM

23
#2519 - Andreas Bolstad / @andreasblstd

08/28/2018 at 07:32PM

23
#2520 - nobody / @nobody31789575

09/09/2018 at 10:10PM