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

6784 active golfers, 30704 entries

Leaderboard (lowest score wins):
23
#2371 - Aneudy Labour / @aneudylabour

04/26/2017 at 02:16PM

23
#2372 - Igor Melnyk / @IrodrigesM

04/26/2017 at 10:41PM

23
#2373 - Alessandro Nazzani / @anazzani

05/03/2017 at 10:31AM

23
#2374 - Vladislav Supalov / @vsupalov

05/12/2017 at 08:20AM

23
#2375 - Sean Rodman / @bassman7689

05/13/2017 at 12:31AM

23
#2376 - Christian Abbott / @etopixi

05/29/2017 at 03:39PM

23
#2377 - TongHyun Kim / @crowdy

05/30/2017 at 09:00AM

23
#2378 - Florian Gauger / @FlorianGauger

06/03/2017 at 09:07PM

23
#2379 - Vladimir Zhelezov / @zhelezoff

07/01/2017 at 06:12PM

23
#2380 - Nick Amin / @thenamin

07/04/2017 at 07:30PM

23
#2381 - Yiyang Chen / @yiyangc91

07/12/2017 at 04:40AM

23
#2382 - Karl Hepler / @oldtimeguitar

07/12/2017 at 01:31PM

23
#2383 - test / @apartment1812

07/13/2017 at 03:18PM

23
#2384 - Joonas Pihlajamaa / @jokkebk

07/19/2017 at 11:31AM

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

07/26/2017 at 10:19PM

23
#2386 - Hans Vennegoor / @HansVennegoor

08/24/2017 at 05:08PM

23
#2387 - Marc Grimpo / @MarcGrimpo

08/26/2017 at 02:37AM

23
#2388 - Daniel Wang / @npbool

08/29/2017 at 10:54AM

23
#2389 - tempo dooake / @tempo_dooake

09/01/2017 at 12:33AM

23
#2390 - albert / @albert67511150

09/01/2017 at 12:42AM

23
#2391 - steph / @brittiskt

09/04/2017 at 01:02PM

23
#2392 - Stephen Betts / @stephenbetts

09/27/2017 at 03:54PM

23
#2393 - ylletyll / @ylletyll

09/27/2017 at 08:08PM

23
#2394 - beard / @rootbeard88

10/07/2017 at 08:51PM

23
#2395 - Mark Cerenzia / @ghosthammer88

10/07/2017 at 09:37PM

23
#2396 - Dennis Carlsson / @dencarlsson

10/08/2017 at 05:01PM

23
#2397 - HC / @soarersiuhc

10/14/2017 at 06:06AM

23
#2398 - Royce Silvester / @RoyceSilvester

10/21/2017 at 03:59PM

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

11/07/2017 at 09:26PM

23
#2400 - QingyuZhao / @zhao_qingyu

11/21/2017 at 08:04AM