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

7425 active golfers, 33647 entries

Leaderboard (lowest score wins):
22
#91 - Tom Houlé / @_tomhoule

09/13/2015 at 06:41AM

22
#92 - How Si Wei / @houxiwu

09/13/2015 at 10:57AM

22
#93 - 0e4ef622 / @0e4ef622

09/13/2015 at 01:10PM

22
#94 - AbleZhang / @Able_Zhang

09/14/2015 at 09:15AM

22
#95 - Ben Turner / @phantomwhale

09/15/2015 at 02:42AM

22
#96 - Slimior / @Slimior

09/15/2015 at 12:32PM

22
#97 - Jonathan Skeate / @jskeate

09/15/2015 at 04:38PM

22
#98 - Jason Schulz / @uxcn_

09/15/2015 at 08:32PM

22
#99 - Paulo H Baumann / @PauloBaumann

09/15/2015 at 10:26PM

22
#100 - PL / @petrlaitoch

09/15/2015 at 10:34PM

22
#101 - Alec Newman / @alecnwmn904

09/16/2015 at 03:58AM

22
#102 - andy / @andy08028451

09/16/2015 at 01:31PM

22
#103 - KONDR / @thekondr

09/16/2015 at 01:54PM

22
#104 - Kevin Merlin / @mp3merlin

09/16/2015 at 02:10PM

22
#105 - AppTakk! / @apptakk

09/16/2015 at 11:07PM

22
#106 - 浮云总是梦 / @cloudisdream

09/17/2015 at 03:35AM

22
#107 - Obviouscator / @obviouscator

09/17/2015 at 10:33AM

22
#108 - Smylers / @Smylers2

09/18/2015 at 08:23AM

22
#109 - Emil Styrke / @EStyrke

09/18/2015 at 11:34AM

22
#110 - Kai Yuan / @kentyuan

09/18/2015 at 11:57AM

22
#111 - Henrik / @kirneh1986

09/18/2015 at 03:57PM

22
#112 - Pete Sevander / @Sevanteri

09/19/2015 at 09:11AM

22
#113 - Douglas Perrin / @Deznormal

09/19/2015 at 11:06PM

22
#114 - Elias Kov / @e_kov

09/21/2015 at 01:20PM

22
#115 - No Thanks / @g11027393

09/21/2015 at 06:49PM

22
#116 - Dan Bee / @HIYARR

09/23/2015 at 06:44AM

22
#117 - Lifepillar / @lifepillar

09/23/2015 at 10:14AM

22
#118 - KoshrBacon / @KoshrBacon

09/24/2015 at 02:48AM

22
#119 - meribold / @mribld

09/25/2015 at 02:00AM

22
#120 - Ethan Madison / @_ethanmad

09/25/2015 at 04:37AM