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

5372 active golfers, 23966 entries

Leaderboard (lowest score wins):
14
#31 - Stefan Stutz / @0VIIXI

10/10/2018 at 08:42PM

15
#32 - Douglas Perrin / @Deznormal

03/02/2018 at 04:11PM

15
#33 - Alexander Zheleznov / @ephemerr

08/16/2018 at 08:11AM

15
#34 - Mark Oswald / @mrkosw

08/21/2018 at 01:25PM

15
#35 - James Deville / @jredville

10/10/2018 at 09:07PM

15
#36 - dyson dark / @U9gJt7mOEOjbRN7

11/17/2018 at 05:15PM

16
#37 - Felipe Oliveira / @felipecvo

07/10/2018 at 04:38PM

17
#38 - Gary Wild / @amande_pistache

11/19/2018 at 05:52PM

18
#39 - Paul Bunch / @gigatesla

01/26/2018 at 07:09PM

19
#40 - Marc / @ukmarcjones

02/22/2019 at 09:31PM

21
#41 - Yogesh Lonkar / @yogeshlor

10/03/2018 at 08:17AM

22
#42 - Tim Chase / @gumnos

07/24/2015 at 01:13AM

22
#43 - Urtica dioica / @udioica

07/24/2015 at 01:13AM

22
#44 - Carlos López / @morrizon

07/24/2015 at 01:32AM

22
#45 - Louis Caruana / @louiecaruana

07/24/2015 at 02:42AM

22
#46 - David Willming / @wdialvmeo

07/24/2015 at 04:05AM

22
#47 - Server Zero / @assaflavie

07/24/2015 at 04:32AM

22
#48 - Jeanno / @JeannoHS

07/24/2015 at 06:59AM

22
#49 - Mutter Mumble / @muttermumble

07/24/2015 at 08:25AM

22
#50 - kungfuchad / @kungfuchad

07/24/2015 at 11:14AM

22
#51 - Serenium / @serenium

07/24/2015 at 11:58AM

22
#52 - Louis Burke / @LambdaABeta

07/24/2015 at 12:21PM

22
#53 - John Braxler / @braxler

07/24/2015 at 02:27PM

22
#54 - Matthieu Crapet / @mcr05

07/24/2015 at 07:27PM

22
#55 - Quark / @PuzzleQuark

07/25/2015 at 03:52PM

22
#56 - Andreas Schlegel / @andischl

07/25/2015 at 05:38PM

22
#57 - Reef / @Sir_Reef

07/25/2015 at 09:55PM

22
#58 - Petro Тrouq / @zulolosi

07/26/2015 at 06:13AM

22
#59 - David da Silva / @dasilvacontin

07/26/2015 at 03:55PM

22
#60 - Wojtek Ryrych / @wryrych

07/26/2015 at 07:01PM