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

7447 active golfers, 33742 entries

Leaderboard (lowest score wins):
42
#7201 - Yan / @Yan87408860

10/22/2019 at 08:13AM

42
#7202 - Doemae / @Doemae02

10/24/2019 at 02:11PM

42
#7203 - JP / @shinvalor

12/28/2019 at 02:08AM

42
#7204 - Ron Peters / @thepistonhead

02/28/2020 at 03:31PM

42
#7205 - tinyfat / @tanghaijun12345

03/27/2020 at 09:36AM

42
#7206 - kenny fan / @kennyfa13857074

05/12/2020 at 02:45PM

42
#7207 - a b c / @abc41115243

06/17/2020 at 03:31AM

42
#7208 - just here to scroll. / @idontknow0001

10/03/2020 at 12:30PM

42
#7209 - Leo sunil / @tomyail

12/07/2020 at 05:59AM

42
#7210 - Dmitry Somov / @DmitrySmv

07/23/2021 at 11:52AM

43
#7211 - Brighton Supper Club / @BtonSupperClub

10/16/2015 at 03:54PM

43
#7212 - Vinnie M / @vinvinvinster

04/29/2016 at 01:03AM

43
#7213 - mike / @bal6219

05/05/2016 at 08:32AM

43
#7214 - Matt Bonsall / @TheSaxMatt

10/26/2016 at 02:22AM

43
#7215 - msil / @mdsilas

09/14/2017 at 12:48PM

43
#7216 - Sebastian Aburto / @saburto_m

09/19/2017 at 02:58PM

43
#7217 - Ishay rabi / @IshayRabi

11/03/2017 at 03:23PM

43
#7218 - Dmitry Petukhov / @dphov

01/16/2018 at 08:00PM

43
#7219 - Bret Cadle / @BretCadle

05/04/2018 at 02:57PM

43
#7220 - Nankai Pan / @cfanpnk

07/09/2018 at 09:01PM

43
#7221 - Greg / @Greg23098229

10/18/2018 at 05:14PM

43
#7222 - Di Peng / @DCodier

10/31/2018 at 04:50AM

43
#7223 - MGJoe93 / @mgjoe93

03/02/2019 at 11:07AM

43
#7224 - Tim W / @TheArchdukeTim

03/05/2019 at 05:10AM

43
#7225 - Hunter Booth / @Hbooth17

05/08/2019 at 08:12PM

43
#7226 - samuel / @samuelwang222

05/17/2019 at 09:56PM

43
#7227 - Juang Wiantoro 🐪 / @broerjuang

11/08/2019 at 08:19PM

43
#7228 - harry / @harry59447962

11/14/2019 at 02:57PM

43
#7229 - heretic314 / @heretic314

01/08/2020 at 07:03PM

43
#7230 - Alvaro Melendez / @alvaromelendezh

02/21/2020 at 02:26AM