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
#2311 - kwa / @kwa129

07/18/2016 at 11:57AM

23
#2312 - Quang Đào / @quang16400

07/18/2016 at 06:51PM

23
#2313 - André Peric Tavares / @andre_peric

07/19/2016 at 05:26PM

23
#2314 - ゆきみ / @edp02

07/20/2016 at 03:06PM

23
#2315 - icchy / @icchyr

07/22/2016 at 05:25AM

23
#2316 - David Millman / @dlmillman

07/24/2016 at 02:46PM

23
#2317 - Pavol Slamka / @Archipedes

07/24/2016 at 06:47PM

23
#2318 - Sam Hammer / @samhammer325

07/30/2016 at 12:44AM

23
#2319 - Gabriel Sztorc / @gabriel_sztorc

07/31/2016 at 10:46PM

23
#2320 - 青木 美将 / @YoshimasaAoki

08/03/2016 at 06:47AM

23
#2321 - Дмитрий Петров / @dpetrov111

08/03/2016 at 05:11PM

23
#2322 - Restroom Sounds / @RestroomSounds

08/05/2016 at 01:07PM

23
#2323 - Alessandro Fusco / @alefucis

08/09/2016 at 11:39PM

23
#2324 - yuri ghensev / @yurighensev

08/10/2016 at 04:16PM

23
#2325 - Eric Nielsen / @ericbn8

08/14/2016 at 03:39AM

23
#2326 - Noah Gamboa / @noah80774444

08/19/2016 at 12:17AM

23
#2327 - Jeremiah Goyette / @JeremiahGoyette

08/20/2016 at 05:09AM

23
#2328 - Maik Teske / @maikteske

08/23/2016 at 12:48PM

23
#2329 - Spy / @thatspysaspy

08/27/2016 at 06:51AM

23
#2330 - ILikeVim / @VimIsCool

09/05/2016 at 01:43PM

23
#2331 - John Jacob / @johnrjacob

09/06/2016 at 12:12AM

23
#2332 - 알카포 / @alkpo12

09/08/2016 at 08:01PM

23
#2333 - Shahaf A / @Av3r4ge

09/12/2016 at 11:25AM

23
#2334 - Aaron J. Radke / @radke

09/18/2016 at 03:30AM

23
#2335 - Allen57 / @ludo57310

09/18/2016 at 08:45AM

23
#2336 - Rohan Orton / @rohan_orton

09/20/2016 at 02:28PM

23
#2337 - Kevin Ilphrin Pellet / @Kilphrin

09/24/2016 at 09:29AM

23
#2338 - Whossname / @BuzzaTyson

09/29/2016 at 11:29AM

23
#2339 - Marko Marulic / @loneloss

10/12/2016 at 03:00PM

23
#2340 - jinx balotchnik / @balotchnik

10/14/2016 at 10:17PM