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
#1381 - Tom Ient / @tom_ient

07/19/2018 at 10:25AM

22
#1382 - BartJanssen / @BartJanssen

07/20/2018 at 10:26AM

22
#1383 - Rajesh Sharma / @deepredsky

07/22/2018 at 07:03PM

22
#1384 - yqu212 / @yqu212

07/26/2018 at 09:43AM

22
#1385 - Koo Zhengqun / @zhengqunkoo

07/27/2018 at 06:49AM

22
#1386 - fucus / @fishlovebanana

07/27/2018 at 01:18PM

22
#1387 - Tom Biskup / @Tombisk

07/27/2018 at 06:13PM

22
#1388 - Romeo Valentin / @Seecez

07/29/2018 at 08:01PM

22
#1389 - Taboo Voodoo / @TabooVoodooR99

07/30/2018 at 06:05PM

22
#1390 - @sndsgns / @sndsgns

07/31/2018 at 05:47AM

22
#1391 - heisenderp / @0xheisenderp

08/01/2018 at 12:29PM

22
#1392 - Victor Quach / @Varal7

08/01/2018 at 02:48PM

22
#1393 - _Tpouhuk / @Tpouhuk2

08/01/2018 at 05:46PM

22
#1394 - Satheesh Kumar / @jmsatheesh

08/01/2018 at 07:09PM

22
#1395 - Kimiyuki Yamauchi / @kimiyukiy

08/02/2018 at 08:52AM

22
#1396 - cmaughan / @cmaughan

08/02/2018 at 09:12PM

22
#1397 - Samuel Hsiang / @alwayswimmin

08/03/2018 at 05:42AM

22
#1398 - Dinesh Bhosale / @DineshRBhosale

08/04/2018 at 08:04PM

22
#1399 - A / @777Android777

08/05/2018 at 12:10AM

22
#1400 - O / @O34721877

08/07/2018 at 04:29AM

22
#1401 - Jacky Lee / @grenmester

08/07/2018 at 05:47AM

22
#1402 - Jérémy Autran / @jjautran

08/09/2018 at 02:08PM

22
#1403 - PCS Solutions / @PeteSolutions

08/10/2018 at 11:30AM

22
#1404 - 村橋究理基M.Kuriki@北大 / @mkuriki_

08/11/2018 at 01:34AM

22
#1405 - hacker65536 / @oracle24986322

08/11/2018 at 08:29AM

22
#1406 - Piotr Walkusz / @piotrwalkusz1

08/11/2018 at 04:10PM

22
#1407 - Lorenzo Leonini / @Leol_

08/11/2018 at 11:39PM

22
#1408 - Keldwik Chaldain / @Suskeyhose

08/14/2018 at 08:18PM

22
#1409 - 徐学健 / @zebrallel

08/15/2018 at 02:46AM

22
#1410 - testingvimgolf / @testingvimgolf

08/15/2018 at 03:53AM