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
#2461 - TongHyun Kim / @crowdy

05/30/2017 at 09:00AM

23
#2462 - Florian Gauger / @FlorianGauger

06/03/2017 at 09:07PM

23
#2463 - Vladimir Zhelezov / @zhelezoff

07/01/2017 at 06:12PM

23
#2464 - Nick Amin / @thenamin

07/04/2017 at 07:30PM

23
#2465 - Yiyang Chen / @yiyangc91

07/12/2017 at 04:40AM

23
#2466 - Karl Hepler / @oldtimeguitar

07/12/2017 at 01:31PM

23
#2467 - test / @apartment1812

07/13/2017 at 03:18PM

23
#2468 - Joonas Pihlajamaa / @jokkebk

07/19/2017 at 11:31AM

23
#2469 - PandaScript (Thanh Le) / @PandaScriptCom

07/26/2017 at 10:19PM

23
#2470 - Hans Vennegoor / @HansVennegoor

08/24/2017 at 05:08PM

23
#2471 - Marc Grimpo / @MarcGrimpo

08/26/2017 at 02:37AM

23
#2472 - Daniel Wang / @npbool

08/29/2017 at 10:54AM

23
#2473 - tempo dooake / @tempo_dooake

09/01/2017 at 12:33AM

23
#2474 - albert / @albert67511150

09/01/2017 at 12:42AM

23
#2475 - steph / @brittiskt

09/04/2017 at 01:02PM

23
#2476 - Stephen Betts / @stephenbetts

09/27/2017 at 03:54PM

23
#2477 - ylletyll / @ylletyll

09/27/2017 at 08:08PM

23
#2478 - beard / @rootbeard88

10/07/2017 at 08:51PM

23
#2479 - Mark Cerenzia / @ghosthammer88

10/07/2017 at 09:37PM

23
#2480 - Dennis Carlsson / @dencarlsson

10/08/2017 at 05:01PM

23
#2481 - HC / @soarersiuhc

10/14/2017 at 06:06AM

23
#2482 - Royce Silvester / @RoyceSilvester

10/21/2017 at 03:59PM

23
#2483 - Eric Söderström / @eksoderstrom

11/07/2017 at 09:26PM

23
#2484 - QingyuZhao / @zhao_qingyu

11/21/2017 at 08:04AM

23
#2485 - Eric Ahlberg / @e_ahlberg

11/23/2017 at 08:22PM

23
#2486 - Rubén Laguna / @ecerulm

11/27/2017 at 08:23PM

23
#2487 - qushot / @qushot

12/03/2017 at 11:48PM

23
#2488 - けんしろう / @weapom923

12/07/2017 at 10:06AM

23
#2489 - かざの@MHW / @kazano_spc

12/16/2017 at 12:26PM

23
#2490 - Elias Åström / @ryvnfn

12/26/2017 at 01:05AM