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

5381 active golfers, 24024 entries

Leaderboard (lowest score wins):
22
#301 - Andrii Maksai / @AMaksai

12/21/2015 at 09:56PM

22
#302 - Aris Kotzias / @ArisKotzias

12/22/2015 at 11:18AM

22
#303 - Fabi / @zehdeh90

12/22/2015 at 10:09PM

22
#304 - Sebastian Nickel / @tumblingwhimsy

12/23/2015 at 02:43AM

22
#305 - Elrrrrrrr / @Elrrrrrrr

12/23/2015 at 09:56AM

22
#306 - Egg / @hammingdistanc1

12/24/2015 at 09:03PM

22
#307 - Sam Stites / @SamStites

12/25/2015 at 05:12AM

22
#308 - aanton / @aanton

12/25/2015 at 11:23AM

22
#309 - Framecurrent / @framecurrent

12/25/2015 at 07:30PM

22
#310 - Adv_Zxy / @adv_zxy

12/26/2015 at 09:12AM

22
#311 - Maciej Woźniak / @eldhash

12/26/2015 at 06:53PM

22
#312 - Håken Lid / @haakenlid

12/26/2015 at 11:27PM

22
#313 - Marko / @suchtie

12/27/2015 at 07:32PM

22
#314 - kandrey999 / @kandrey999

12/28/2015 at 05:23AM

22
#315 - Brian C Sparks / @briancsparks

12/28/2015 at 01:09PM

22
#316 - Anthony BERNARD / @TweetTontony

12/31/2015 at 01:16PM

22
#317 - Saki Gw / @Sakigw

01/03/2016 at 01:47PM

22
#318 - DrHobo / @_DrHobo_

01/03/2016 at 06:11PM

22
#319 - WhatDo / @WhatDo10

01/05/2016 at 11:36AM

22
#320 - aashiq / @aashiq

01/06/2016 at 04:00PM

22
#321 - Alan Kang / @alankang

01/07/2016 at 01:10AM

22
#322 - jackliusr / @jackliusr

01/07/2016 at 05:54AM

22
#323 - Evgeny`s Kindle / @EvgenyKindle

01/07/2016 at 10:40PM

22
#324 - Roberto Carraretto / @robcarraretto

01/08/2016 at 12:21AM

22
#325 - hen don / @hendon112

01/09/2016 at 01:49AM

22
#326 - Goonoo Kim / @mctenshi

01/09/2016 at 01:03PM

22
#327 - namongk / @namongk

01/10/2016 at 03:30AM

22
#328 - Pikkiwoki / @Pikkiwoki

01/11/2016 at 03:27AM

22
#329 - Robbert Brak / @robbertbrak

01/11/2016 at 09:48AM

22
#330 - lassie (らっしー) / @lass1e

01/12/2016 at 02:12PM