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

7071 active golfers, 32052 entries

Leaderboard (lowest score wins):
36
#6421 - Yann VERY / @yannvery

06/25/2018 at 10:49AM

36
#6422 - niwatoco / @yoshitune9

07/15/2018 at 01:40PM

36
#6423 - Branquito / @branquito

07/15/2018 at 06:13PM

36
#6424 - Jakub Tesárek / @JakubTesarek

07/24/2018 at 08:34AM

36
#6425 - Pancham Bharadwaj / @PanchamRB

07/31/2018 at 05:18AM

36
#6426 - Pham Nhat Cuong / @acmetal74

08/02/2018 at 02:56AM

36
#6427 - mnbvcxzqwerty / @mnbvcxzqwerty3

08/04/2018 at 08:17PM

36
#6428 - Lê Trung Hiếu / @vienngoc9

08/22/2018 at 12:27PM

36
#6429 - tmp4869 / @tmp4869

08/24/2018 at 12:49PM

36
#6430 - Wilhelm / @wkirschbaum

09/09/2018 at 08:08AM

36
#6431 - Ruben Paz / @IstarEldritch

09/15/2018 at 08:47PM

36
#6432 - Toby R / @TobyRet

10/01/2018 at 10:09AM

36
#6433 - Freak's Utopia / @Freak_s_Utopia

10/02/2018 at 05:21PM

36
#6434 - Adam May / @Adam0May

10/05/2018 at 07:33PM

36
#6435 - 茶々豆 / @chachamame0420

10/19/2018 at 12:27PM

36
#6436 - Singwai Chan / @singwai_chan

10/21/2018 at 04:18AM

36
#6437 - Daniel White / @dwhitedev

10/23/2018 at 05:06AM

36
#6438 - joey caffrey / @caffmuscles24

10/30/2018 at 03:12PM

36
#6439 - jonbwhite / @jonbwhite

11/29/2018 at 01:17AM

36
#6440 - Eliana Abraham / @abrajaaamz

12/16/2018 at 09:24PM

36
#6441 - .ごっち / @gggooottto

02/04/2019 at 07:42AM

36
#6442 - Vincent Arel-Bundock / @VincentAB

02/06/2019 at 01:56PM

36
#6443 - Gabriel-Andrew Pollo / @GabrielGuilbert

02/08/2019 at 08:00PM

36
#6444 - joe-xyz / @joexyz7

02/13/2019 at 08:45PM

36
#6445 - Garbunkles / @garbunkles

02/21/2019 at 02:29PM

36
#6446 - Steven Liu / @stevenliu216

02/28/2019 at 03:42AM

36
#6447 - TadikMaHladik / @TadikH

02/28/2019 at 02:03PM

36
#6448 - Alexander Popov / @Alexand01782341

03/01/2019 at 12:39PM

36
#6449 - damo / @damopewpew

03/02/2019 at 12:50AM

36
#6450 - Chloe Ransom / @cransom12

03/08/2019 at 01:10PM