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
#2221 - Cao Van Bi / @CaoVanBi235

08/17/2020 at 02:36AM

22
#2222 - Ihor / @Ihor96382508

08/17/2020 at 12:40PM

22
#2223 - Tanzeel Kazi / @tanzeelkazi

08/18/2020 at 01:23AM

22
#2224 - Ilya Komarov ⚛️ / @ilya_komar0ff

08/18/2020 at 10:51AM

22
#2225 - John Doe / @JohnDoe15459163

08/20/2020 at 01:16PM

22
#2226 - Łukasz Kadłubowski / @LAKadlubowski

08/21/2020 at 05:46AM

22
#2227 - Stewart Martin / @aspace_au

08/23/2020 at 03:31AM

22
#2228 - Matthew Blode / @BlodeMatthew

08/26/2020 at 07:03AM

22
#2229 - Udbhav Muthakana / @udbhavm_

08/26/2020 at 07:56PM

22
#2230 - Tom Dalling / @tom_dalling

08/30/2020 at 01:45PM

22
#2231 - Hardik Upadhyay / @HardikU84218026

09/01/2020 at 11:37AM

22
#2232 - Robert Verst / @r_verst

09/01/2020 at 01:52PM

22
#2233 - LeeHowl / @LeeHowAlex

09/01/2020 at 02:50PM

22
#2234 - akouryy / @akouryy1

09/05/2020 at 07:10AM

22
#2235 - Der Natsch / @dernatsch

09/05/2020 at 01:34PM

22
#2236 - HarrisonSGolf / @HarrisonSGolf1

09/06/2020 at 07:28PM

22
#2237 - Nick Edwards / @edwardsnjd

09/07/2020 at 03:53PM

22
#2238 - 刘宏亮 / @CoyAkey

09/07/2020 at 04:32PM

22
#2239 - Kurt Keller / @KurtKeller

09/07/2020 at 07:43PM

22
#2240 - M / @M88566443

09/08/2020 at 07:35PM

22
#2241 - Blipss / @BlipSound

09/11/2020 at 11:05AM

22
#2242 - Piotr Kaznowski / @kaznowski

09/13/2020 at 11:36AM

22
#2243 - Mike Walker / @mikewalk

09/19/2020 at 12:43PM

22
#2244 - Aaron Cooley / @acoolz

09/20/2020 at 03:37AM

22
#2245 - Jimmy / @Jimmy67669554

09/23/2020 at 06:40PM

22
#2246 - Алексей Ковалев / @FrostMephi

09/24/2020 at 08:31PM

22
#2247 - David Nuñez / @dnunez24

09/25/2020 at 01:05AM

22
#2248 - genoskill / @Genoskill

09/25/2020 at 01:33AM

22
#2249 - Namn / @Namn59676557

09/26/2020 at 12:50PM

22
#2250 - Sébastien Roccaserra / @sroccaserra

09/26/2020 at 01:44PM