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

7060 active golfers, 32018 entries

Leaderboard (lowest score wins):
22
#1681 - Tiago E. Triques / @tiagotriques

03/18/2019 at 12:30PM

22
#1682 - James Perry Hartman / @JauntyJPH

03/18/2019 at 06:05PM

22
#1683 - Sergey Ryabko / @RyabkoSergey

03/18/2019 at 06:55PM

22
#1684 - Parsa Amini / @ParsaAmini

03/19/2019 at 03:29AM

22
#1685 - adir ohayon / @AdirKip

03/19/2019 at 11:20PM

22
#1686 - mfgujhgh / @mfgujhgh

03/21/2019 at 01:39PM

22
#1687 - Andrew Frauens / @FrownMoore

03/25/2019 at 04:56AM

22
#1688 - 🅷🅰🆁🆁🆈 / @HarryAAbrahams1

03/25/2019 at 12:03PM

22
#1689 - Tom / @Tom39997681

03/27/2019 at 05:07AM

22
#1690 - bonky / @bonky87781349

03/27/2019 at 04:04PM

22
#1691 - her / @her35520005

03/27/2019 at 09:40PM

22
#1692 - Michał Łowicki / @mlowicki

03/27/2019 at 10:35PM

22
#1693 - wanghbxxxx / @wanghbxxxx

03/28/2019 at 03:49AM

22
#1694 - krl / @twikrl

03/28/2019 at 05:30PM

22
#1695 - Antoine Gagelin / @AntoineGagelin

03/29/2019 at 03:05PM

22
#1696 - Maximilian F. / @TheMaex

03/29/2019 at 11:44PM

22
#1697 - clonejo / @clonejo

03/29/2019 at 11:47PM

22
#1698 - Bojan Đuričković / @durickovic

03/30/2019 at 02:14AM

22
#1699 - Matthew Rossman / @chimpman252

03/30/2019 at 02:25AM

22
#1700 - bokkii / @bokkii7

03/30/2019 at 02:38AM

22
#1701 - . / @fislaqq

03/31/2019 at 12:07AM

22
#1702 - k24w24 / @k24w24

03/31/2019 at 07:33AM

22
#1703 - magnostherobot / @magnostherobot

03/31/2019 at 07:55PM

22
#1704 - hoge2341836 / @RootShunsuke

03/31/2019 at 10:49PM

22
#1705 - Scott / @chil2

04/01/2019 at 08:25PM

22
#1706 - Michael Elias / @mikowl

04/02/2019 at 05:40PM

22
#1707 - Andrej Zieger / @JerdnaRegeiz

04/03/2019 at 05:49AM

22
#1708 - Dylan / @helloasdff

04/03/2019 at 01:48PM

22
#1709 - Murmus / @MurmusCTF

04/04/2019 at 12:25AM

22
#1710 - GS / @GSijmens

04/04/2019 at 10:04AM