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

6041 active golfers, 27127 entries

Leaderboard (lowest score wins):
35
#5371 - Sourciluss / @sourciluss

01/22/2018 at 12:07AM

35
#5372 - Will Toher / @WillFAVI

02/04/2018 at 12:23AM

35
#5373 - Patrick / @example_patrick

03/09/2018 at 09:34PM

35
#5374 - twitbot / @twitbort

04/18/2018 at 08:58PM

35
#5375 - olivier lemoigne / @olivierlemoigne

05/04/2018 at 12:24PM

35
#5376 - chen xi / @cx_80

05/07/2018 at 02:30PM

35
#5377 - Master Snipes / @snipes_master

05/29/2018 at 12:31AM

35
#5378 - testy / @KeiAmeUV

06/01/2018 at 10:14AM

35
#5379 - z0c / @zerocabal

06/02/2018 at 01:15PM

35
#5380 - Christian Köstlin / @gizmomogwai

06/18/2018 at 09:49PM

35
#5381 - TK / @defnottk

07/04/2018 at 07:15PM

35
#5382 - もんたるじあ / @kadeo1212

07/05/2018 at 01:58PM

35
#5383 - Walker Byrnes / @ByrnesWalker

07/06/2018 at 02:27PM

35
#5384 - Theo Andersen Carton / @TheoAndersen

08/07/2018 at 06:25PM

35
#5385 - Max Petersson / @ispymarre

08/24/2018 at 08:14PM

35
#5386 - Ryan Daniels / @RyanNeilDaniels

08/28/2018 at 07:02AM

35
#5387 - Paul Adams / @saladpuma

08/29/2018 at 04:14PM

35
#5388 - burnerAccount52442 / @account52442

08/31/2018 at 01:01PM

35
#5389 - Jon Kartago Lamida / @lamida

09/11/2018 at 09:44AM

35
#5390 - CAO Tien Duc / @tienduccao

09/11/2018 at 08:21PM

35
#5391 - Naz / @Naz29407955

09/15/2018 at 09:04AM

35
#5392 - gsvba / @gsvba

09/18/2018 at 09:23PM

35
#5393 - FokkusuKaze / @FokkusuKaze

09/24/2018 at 07:00AM

35
#5394 - Vim Golf / @VimGolf4

10/30/2018 at 09:11PM

35
#5395 - dorpo / @dorpo2

11/01/2018 at 03:32PM

35
#5396 - vipul / @vipul54995001

11/06/2018 at 08:07AM

35
#5397 - Nick Induni / @NickInduni

11/29/2018 at 01:25AM

35
#5398 - Tom Troyer / @tom_troyer

11/29/2018 at 07:53PM

35
#5399 - Alison Bento / @abnt713

12/06/2018 at 07:54PM

35
#5400 - Awakening George / @GeorgeC_monster

12/23/2018 at 09:59PM