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

6042 active golfers, 27133 entries

Leaderboard (lowest score wins):
36
#5461 - Pedro Franceschi / @pedroh96

01/12/2016 at 08:53PM

36
#5462 - Antonio García / @AntonioGarRod

01/19/2016 at 12:24PM

36
#5463 - James Vaughan / @vaughanj10

01/21/2016 at 05:47PM

36
#5464 - Joel Stanner / @JoelStanner

01/29/2016 at 10:24AM

36
#5465 - Kodie Goodwin / @kaptainkodie

01/29/2016 at 06:45PM

36
#5466 - Pratap Koritala / @pratap_koritala

02/16/2016 at 04:26PM

36
#5467 - Steven Burnett / @sdb1228

02/17/2016 at 09:30PM

36
#5468 - Samuel Evans-Powell / @sevanspowell

03/11/2016 at 12:08AM

36
#5469 - Martin / @delyat

03/17/2016 at 12:38PM

36
#5470 - Matthew Gardner / @mattgardn

06/11/2016 at 03:07AM

36
#5471 - uɐɥlnƃ uɐɯɹǝ / @egulhan

06/17/2016 at 06:04AM

36
#5472 - Josh Greenwood / @JoshTGreenwood

06/26/2016 at 03:14AM

36
#5473 - Christopher Fujino / @chrisfujino

07/16/2016 at 02:47AM

36
#5474 - Andrés / @MrCavero

07/21/2016 at 09:19AM

36
#5475 - Tyler Tomlinson / @tjtoml

08/04/2016 at 02:18AM

36
#5476 - king_zorba / @StrangeZorba

09/19/2016 at 05:16PM

36
#5477 - walwb walwb / @walwby

09/26/2016 at 04:26PM

36
#5478 - andré / @AndreWASkeete

09/26/2016 at 05:10PM

36
#5479 - Markus Bala / @bala4901

11/17/2016 at 01:26AM

36
#5480 - J-F R. / @RheaultJF

11/17/2016 at 05:23PM

36
#5481 - Damien BRY ⚡️ / @orbmancer

12/05/2016 at 04:00PM

36
#5482 - Nico Jansen / @nicojansen1804

01/03/2017 at 06:10PM

36
#5483 - Jeff Halter / @JeffHalter

02/25/2017 at 07:33PM

36
#5484 - Jeffrey Smith / @jssmith94

03/06/2017 at 08:22PM

36
#5485 - Victor Ciurel / @victor_ciurel

03/11/2017 at 12:27PM

36
#5486 - JDani / @jdanijimenez

04/19/2017 at 09:41PM

36
#5487 - 什麼でも아냐 / @shenmedemo

09/06/2017 at 01:42AM

36
#5488 - Zachary Wilson / @zachawilson

10/12/2017 at 01:31AM

36
#5489 - Richard Godden / @goddenrich

10/18/2017 at 05:47PM

36
#5490 - Tim Tejsner / @datimsta

10/26/2017 at 10:31PM