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
#2221 - Will Thong / @willthong

07/28/2015 at 06:28AM

23
#2222 - Peter B / @l0wm4x

07/28/2015 at 12:15PM

23
#2223 - Bergerac / @aoe3lessons

07/28/2015 at 01:19PM

23
#2224 - Hervé Rouault / @hrouault

07/31/2015 at 09:52PM

23
#2225 - Roland Crosby / @roooooland

08/03/2015 at 07:53PM

23
#2226 - installero / @installero

08/15/2015 at 09:00PM

23
#2227 - broella3 / @broella3

08/18/2015 at 01:38PM

23
#2228 - Martin Galpin / @MartinRGalpin

08/22/2015 at 03:38PM

23
#2229 - Andy Borsz / @biscuitvile

08/24/2015 at 12:47AM

23
#2230 - Oleg Parashchenko / @olparko

08/30/2015 at 09:20PM

23
#2231 - Jinzhou Zhang / @jinzhouz

09/02/2015 at 06:55AM

23
#2232 - João Carvalho / @joaoCarvas

09/03/2015 at 01:29PM

23
#2233 - Adam Stephen / @2_71828

09/03/2015 at 10:00PM

23
#2234 - Jon Nyman / @NymanJon

09/12/2015 at 09:18AM

23
#2235 - Ben Vandervalk / @benvvalk

09/14/2015 at 02:31AM

23
#2236 - dd / @dd22147119

09/14/2015 at 03:56PM

23
#2237 - Thomas Draper / @QuanTom561

09/20/2015 at 11:17PM

23
#2238 - Ronnie McCall / @RonnieMcC

09/21/2015 at 02:24PM

23
#2239 - Charles Joachim / @cacplate

09/23/2015 at 02:20AM

23
#2240 - buz / @buzbone

09/23/2015 at 02:59PM

23
#2241 - bryn edwards / @edwards_bryn

10/02/2015 at 08:24AM

23
#2242 - Pitr Vernigorov / @pitrapen

10/02/2015 at 08:36PM

23
#2243 - André Peric Tavares / @AndrePeric

10/03/2015 at 06:02PM

23
#2244 - Emeliov Dmitri / @EmeliovD

10/06/2015 at 09:02AM

23
#2245 - Sean Hill / @insecteanSean

10/10/2015 at 01:11AM

23
#2246 - Jacob Beal / @_caliburnus

10/10/2015 at 09:31PM

23
#2247 - Maarten Kruithof / @mckruithuijb

10/14/2015 at 02:34PM

23
#2248 - DespicableJerk / @JerkDespicable

10/17/2015 at 03:26PM

23
#2249 - Oleg Alfalfa / @6alfalfa9

10/18/2015 at 10:34AM

23
#2250 - Gavin Taqwaa / @chuckclayton_t1

10/27/2015 at 10:53PM