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 5474 remaining solutions by signing in and submitting your own entry
#5475 KEBE Abdou Bigue / @KebeBigue - Score: 359 - 11/14/18 @ 11:15
jjjjjj<Esc>itemp var7<BS><BS><BS><BS><BS><BS><BS><BS><BS>*T<BS>temp var7 11j<BS><Esc>jj<Esc>iNex<BS>w text.k<BS><Esc>kkmllllll<CR><CR>kkllllllllllllluuU<Up><Up><Up><Down><Esc>I<Esc>I*T<BS>temp var7 11<Esc>jj<Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc><Esc>iNex<BS>w text.<Esc>kkllll<Esc>io<BS><Esc>llo<Esc>jjkjkllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllloj<BS><Esc>jllllllllloh<BS><Esc>h:Q<BS>wq<CR>

0 comments


Created by: @Flurrywinde

5475 active golfers, 24453 entries

Leaderboard (lowest score wins):
40
#5221 - Alexandros Ntoulas / @ntoulas

08/28/2015 at 07:03PM

40
#5222 - Pin / @ponfelipon

10/06/2015 at 08:56PM

40
#5223 - Kevin Kloud / @KevKloudMusic

11/23/2015 at 06:31AM

40
#5224 - udreki / @udreki

02/05/2016 at 11:46AM

40
#5225 - Shankar Nakai / @NakaiShankar

07/17/2016 at 09:10PM

40
#5226 - Andrew Hanlon / @AndrewDHanlon

10/12/2016 at 06:03PM

40
#5227 - Underfloor / @Underfloor11

10/30/2016 at 11:37PM

40
#5228 - Yongjoo Ji / @msrband

01/12/2017 at 02:52AM

40
#5229 - NG / @dueyfinster

02/07/2017 at 10:06AM

40
#5230 - Hascoet Kevin / @Neolex29

03/12/2017 at 12:58AM

40
#5231 - Dreach Achat Revente / @TheDreach_AR

03/25/2017 at 12:14PM

40
#5232 - 강 / @elfmagic860

05/06/2017 at 01:40AM

40
#5233 - Basile Perrenoud / @BP_DK_

06/08/2017 at 12:16PM

40
#5234 - Vinay Keerthi / @vinay87

10/22/2017 at 09:20AM

40
#5235 - Brennan Minns / @Minns_Brennan

12/18/2017 at 01:43PM

40
#5236 - Yousef Mohamed / @MohamedYoyo94

01/30/2018 at 12:30AM

40
#5237 - MIKAEL / @mbe24_

02/06/2018 at 10:09AM

40
#5238 - Brooks Swinnerton / @bswinnerton

04/19/2018 at 02:39AM

40
#5239 - Trever Shick / @trevermshick

06/05/2018 at 04:10AM

40
#5240 - Max Odnoletkov / @ezlx

07/29/2018 at 11:03AM

40
#5241 - DolaBMOon / @DolaBMOon2002

08/27/2018 at 11:59AM

40
#5242 - Alin Pisica / @alinp25

09/01/2018 at 08:10AM

40
#5243 - James / @mulholio

09/09/2018 at 11:32AM

40
#5244 - Valeriy Pushkar / @valeriy_pushkar

10/15/2018 at 12:57PM

40
#5245 - urandom / @ttyrandom

10/19/2018 at 02:44PM

40
#5246 - Laurent Chenay / @My_Sic

11/07/2018 at 09:10AM

40
#5247 - Wadikur Rahman / @Wadikur

11/11/2018 at 02:35PM

40
#5248 - Rébecca.A / @moon_xiel

11/15/2018 at 11:00AM

40
#5249 - Alice / @Alice23119354

01/08/2019 at 10:21AM

40
#5250 - Igor Irianto / @iggTweet

02/13/2019 at 04:34AM