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

6717 active golfers, 30347 entries

Leaderboard (lowest score wins):
22
#1711 - Dryvnt / @Dryvnt

04/04/2019 at 12:24PM

22
#1712 - Loنtre / @OtterPy

04/05/2019 at 09:12AM

22
#1713 - Joel Eriksson / @OwariDa

04/05/2019 at 10:00AM

22
#1714 - Brandon Pfeifer / @BrandonPfeifer6

04/05/2019 at 05:28PM

22
#1715 - John / @John40423001

04/06/2019 at 03:49PM

22
#1716 - Mikhail K. / @_mkl_k

04/06/2019 at 08:25PM

22
#1717 - Remy Oudemans / @OudemansRemy

04/07/2019 at 12:44PM

22
#1718 - Ben Sandford / @BHSandford_

04/08/2019 at 03:09PM

22
#1719 - smillence / @smillence1

04/10/2019 at 04:47AM

22
#1720 - Paweł Styczewski / @kryspuss

04/11/2019 at 12:16PM

22
#1721 - Lincoln / @chalcidfly

04/12/2019 at 03:42PM

22
#1722 - alekfed / @alek_fed

04/13/2019 at 01:53PM

22
#1723 - TheSemicolon / @the_semicolon_

04/14/2019 at 05:31AM

22
#1724 - synic@ $ :(){ :|:& };: / @synic_m

04/14/2019 at 02:35PM

22
#1725 - Askhat Sakhabiev / @Sakhabiev_Ashat

04/14/2019 at 10:53PM

22
#1726 - 이종혁 / @BluePaisa

04/17/2019 at 04:14AM

22
#1727 - Olivier Moindrot / @OlivierMoindrot

04/17/2019 at 01:33PM

22
#1728 - Jaan Toots / @JaanToots

04/17/2019 at 03:27PM

22
#1729 - Tucker Hayden / @TuckNRollio

04/17/2019 at 04:56PM

22
#1730 - Gitsnik / @dracyrys

04/18/2019 at 02:11PM

22
#1731 - Olle NoRdesjö / @Rasinj

04/20/2019 at 09:58PM

22
#1732 - Fredrik Bjerkås / @fbjerkas

04/21/2019 at 10:04PM

22
#1733 - Baggykiin / @Baggykiin

04/22/2019 at 03:08AM

22
#1734 - Roman Vrublevskiy / @R0manza

04/22/2019 at 08:09PM

22
#1735 - Skywalker 666 / @MemeMasterXXI

04/23/2019 at 02:20PM

22
#1736 - shredded / @shredded

04/23/2019 at 09:00PM

22
#1737 - tnagai / @tnagai

04/24/2019 at 05:40AM

22
#1738 - Correct Battery Horse / @horse_battery

04/24/2019 at 08:07PM

22
#1739 - Grant / @grant_7788

04/25/2019 at 08:09AM

22
#1740 - BenL / @BenL86660733

04/25/2019 at 05:16PM