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
#2491 - Adrian Craciun / @adi_craciun

09/30/2019 at 12:03PM

23
#2492 - Howl / @Howlxx55

10/04/2019 at 04:05PM

23
#2493 - Alex Emelianov / @AlexEmelianov3

10/20/2019 at 12:12AM

23
#2494 - Scott Taylor / @scott11X8

10/24/2019 at 11:52PM

23
#2495 - Henry Hey / @mj0lnir

10/25/2019 at 11:05AM

23
#2496 - Winston Smith / @winstonCodes

10/30/2019 at 08:45PM

23
#2497 - Tokos Apos / @AposTokosapos

11/04/2019 at 09:21AM

23
#2498 - skamgolf / @skamgolf

11/05/2019 at 02:23AM

23
#2499 - James Gillies / @jw_gillies

11/08/2019 at 07:59PM

23
#2500 - Lei Kin / @kireinasorakin

11/12/2019 at 05:03AM

23
#2501 - alixwang / @wangjunal

11/14/2019 at 09:13AM

23
#2502 - Jakub Wasilewski / @snarkysnaut

11/20/2019 at 09:24AM

23
#2503 - hassium / @hassium16

11/22/2019 at 05:02AM

23
#2504 - Przemysław Michalak / @dambusio

11/24/2019 at 10:35AM

23
#2505 - Lion de Bell / @CLGBamboo

11/30/2019 at 10:35PM

23
#2506 - Paweł Samoraj / @samorajp

12/04/2019 at 10:30AM

23
#2507 - Rafael Lin / @RafaelLin0310

12/11/2019 at 06:00AM

23
#2508 - Shanmukh chaitanya / @Shanmukhchaita1

12/16/2019 at 08:06AM

23
#2509 - vimRunnerUp3000 / @VUp3000

12/18/2019 at 12:53PM

23
#2510 - hokonch / @hokonch

12/20/2019 at 03:49PM

23
#2511 - tetstest / @tetstest4

12/21/2019 at 10:31PM

23
#2512 - Delon / @delonleonard

12/22/2019 at 01:51AM

23
#2513 - sapir malka / @sapir5522

12/22/2019 at 12:09PM

23
#2514 - Hyper Bovine / @hyperbovine

01/05/2020 at 09:28PM

23
#2515 - vimgolfer / @vimgolfer13

01/09/2020 at 04:04AM

23
#2516 - Horacio Crotte / @horaciocl

01/17/2020 at 01:38AM

23
#2517 - DosLin / @hidoslin

01/20/2020 at 03:29AM

23
#2518 - Michael Meixner / @meixner62

01/21/2020 at 12:28PM

23
#2519 - Gytis Vinclovas / @GytisVinclovas

01/27/2020 at 10:39AM

23
#2520 - Максим Селиверстов / @max_developer

01/31/2020 at 12:56PM