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

6915 active golfers, 31316 entries

Leaderboard (lowest score wins):
22
#1321 - Jesse Olson / @bioxcession

05/04/2018 at 07:08PM

22
#1322 - Eugene / @youjeannn

05/04/2018 at 07:34PM

22
#1323 - eL Bunda / @elbund4

05/04/2018 at 08:51PM

22
#1324 - Jerry Wu / @AzureSpectra

05/06/2018 at 07:25PM

22
#1325 - Robopengwin / @robopengwin

05/06/2018 at 08:04PM

22
#1326 - Quade Morrison / @quade_morrison

05/06/2018 at 08:08PM

22
#1327 - Elite Hacker of the Light / @L3E7

05/08/2018 at 07:22AM

22
#1328 - Bimal Gaudel / @BimalGaudel

05/08/2018 at 10:44AM

22
#1329 - xiaoxiaohe / @xiaoxiaohe4

05/09/2018 at 04:34PM

22
#1330 - Aunt Jovie / @auntjovie

05/09/2018 at 10:45PM

22
#1331 - hexforfun / @hexforfun

05/10/2018 at 12:27AM

22
#1332 - Altcoin Revolution / @Altcoin_Revo

05/11/2018 at 04:11AM

22
#1333 - Michael van der Nest / @michaelvdnest

05/14/2018 at 02:38PM

22
#1334 - liberforce / @liberforce1

05/22/2018 at 12:31AM

22
#1335 - Alex Wood / @alexlawriewood

05/22/2018 at 09:11AM

22
#1336 - Marchand Paul-Valère / @pvmarch

05/24/2018 at 03:03PM

22
#1337 - Ψαροκροκέτα / @psarokroketa

05/24/2018 at 06:12PM

22
#1338 - Pearson Daniels / @PearsonDaniels

05/24/2018 at 10:44PM

22
#1339 - wind2412 / @wind944797358

05/27/2018 at 08:19AM

22
#1340 - r / @revanthedarth

05/27/2018 at 02:16PM

22
#1341 - omrisarig / @omrisarig

06/01/2018 at 09:02PM

22
#1342 - Antony Scriven / @antonyscriven

06/01/2018 at 10:30PM

22
#1343 - Daniël De Koker / @daniel_koker

06/02/2018 at 04:35PM

22
#1344 - Boda / @Boda47528108

06/04/2018 at 11:31AM

22
#1345 - もりお / @9nACjtcQ2NL0Va4

06/07/2018 at 07:14AM

22
#1346 - Xiangyu Xu / @bkbncn

06/09/2018 at 07:29AM

22
#1347 - wolnosc / @wolnosc5

06/09/2018 at 03:38PM

22
#1348 - Simon Ticks / @SimonTicks

06/10/2018 at 01:07PM

22
#1349 - Young-geun Kim / @6a503ca06306464

06/10/2018 at 09:45PM

22
#1350 - Jack Phelan / @bytesandwich1

06/11/2018 at 06:00AM