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

7063 active golfers, 32034 entries

Leaderboard (lowest score wins):
22
#2281 - Sven H. / @mostley

10/30/2020 at 05:09PM

22
#2282 - Ossian O'Reilly / @ossian_oreilly

11/01/2020 at 02:14AM

22
#2283 - Lucas Nussbaum / @LucasNussbaum

11/02/2020 at 02:28PM

22
#2284 - Cornelius Roemer / @CorneliusRoemer

11/04/2020 at 08:00PM

22
#2285 - Arryue / @Arryue2

11/07/2020 at 08:53PM

22
#2286 - Jacques Donnelly / @Donnll

11/08/2020 at 01:39PM

22
#2287 - vimspam / @vimspam

11/09/2020 at 03:27AM

22
#2288 - quemeraisc / @quemeraisc

11/10/2020 at 02:28PM

22
#2289 - Ansel Bobrow / @garlicWharfRat

11/12/2020 at 03:32PM

22
#2290 - David Kutschke / @D4KU_

11/14/2020 at 03:16PM

22
#2291 - Joe Biden / @JoeBide11339644

11/15/2020 at 06:35AM

22
#2292 - Andreas Siegrist / @andreaszwei

11/15/2020 at 11:07PM

22
#2293 - Sean Rankine / @Theseanything

11/16/2020 at 09:27AM

22
#2294 - Lashoun / @lashoun42

11/17/2020 at 03:21PM

22
#2295 - SilviaRodriguez / @Rodrigu3zSilvia

11/22/2020 at 08:57PM

22
#2296 - Ravi S Sinha / @ambidextrousTx

11/24/2020 at 12:05AM

22
#2297 - Hugh / @haquaman

11/24/2020 at 03:43AM

22
#2298 - hepebexè / @hepebexe

11/24/2020 at 09:22PM

22
#2299 - MrRubiksSC / @RubiksSc

11/25/2020 at 02:25AM

22
#2300 - Andreas Näsman / @andreas_nasman

11/26/2020 at 08:51PM

23
#2301 - fantome / @fantome84

07/24/2015 at 01:55PM

23
#2302 - ryk / @rykarn

07/24/2015 at 08:15PM

23
#2303 - McKay Ward / @mckayward

07/25/2015 at 08:32PM

23
#2304 - Matthew / @magee210

07/27/2015 at 11:38PM

23
#2305 - Will Thong / @willthong

07/28/2015 at 06:28AM

23
#2306 - Peter B / @l0wm4x

07/28/2015 at 12:15PM

23
#2307 - Bergerac / @aoe3lessons

07/28/2015 at 01:19PM

23
#2308 - Hervé Rouault / @hrouault

07/31/2015 at 09:52PM

23
#2309 - Roland Crosby / @roooooland

08/03/2015 at 07:53PM

23
#2310 - installero / @installero

08/15/2015 at 09:00PM