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
#2011 - rirze / @SourabhWasTaken

12/24/2019 at 06:27PM

22
#2012 - David Barker / @dashleybarker

12/26/2019 at 05:01PM

22
#2013 - jonlee / @jonlee48400052

12/27/2019 at 12:46AM

22
#2014 - Noah Golub / @NoahGolub2

12/27/2019 at 06:53AM

22
#2015 - kashikasitaro / @kashikasitaro

12/27/2019 at 08:10AM

22
#2016 - JimmyGymglish / @JGymglish

12/27/2019 at 11:18AM

22
#2017 - Rui Xue / @ruirayxue

12/27/2019 at 04:58PM

22
#2018 - Maksim / @its_terra

12/30/2019 at 08:26PM

22
#2019 - tspilk / @tspilk

01/02/2020 at 07:25PM

22
#2020 - caffeineism / @caffeineism

01/05/2020 at 11:28PM

22
#2021 - nicosierra / @nicosierra84

01/06/2020 at 12:08AM

22
#2022 - Tyler Culdler / @culdler

01/07/2020 at 03:06AM

22
#2023 - lev / @nouvelliu

01/08/2020 at 02:35AM

22
#2024 - Yu Zhang / @kingzy615

01/09/2020 at 04:01AM

22
#2025 - Stefan Bjarnason / @stefanttb

01/11/2020 at 06:03PM

22
#2026 - Felix Boers / @felixboers

01/12/2020 at 04:34PM

22
#2027 - Gil Shotan / @gilshotan

01/13/2020 at 04:49AM

22
#2028 - I / @isxln

01/14/2020 at 04:14AM

22
#2029 - 밤색 / @aeisura

01/14/2020 at 09:36AM

22
#2030 - Karnival K / @K4rnival

01/14/2020 at 07:44PM

22
#2031 - Flowepmed S. Sirch / @iluvfugu

01/17/2020 at 03:23AM

22
#2032 - John / @Guyer250

01/18/2020 at 12:13AM

22
#2033 - bob / @solacium1493

01/18/2020 at 12:15AM

22
#2034 - Pawel Marciniak / @pave_m

01/18/2020 at 08:55AM

22
#2035 - Kyle X. Clark / @KyXr_Clark

01/21/2020 at 04:05AM

22
#2036 - く / @noblack_nolife

01/21/2020 at 07:43AM

22
#2037 - Rune Warhuus / @DinkDonkNorway

01/21/2020 at 09:37AM

22
#2038 - Jiří Szkandera / @JiriSzkandera

01/21/2020 at 08:31PM

22
#2039 - li / @li94938987

01/23/2020 at 06:11PM

22
#2040 - Henry / @henry_codes

01/25/2020 at 04:53PM