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

6912 active golfers, 31292 entries

Leaderboard (lowest score wins):
24
#2671 - Nicholas Marasco / @Zero_Toast

04/27/2016 at 03:58PM

24
#2672 - Felbane / @felbane

05/02/2016 at 01:51PM

24
#2673 - Matt Clement / @zetaspartan2552

05/02/2016 at 07:09PM

24
#2674 - Malcolm Ramsay / @malramsay64

05/09/2016 at 03:41AM

24
#2675 - Cyber / @CyberLeo

05/14/2016 at 11:19PM

24
#2676 - Chris Armstrong / @ChrisATweets

05/19/2016 at 10:27PM

24
#2677 - dip00dip / @dip00dip

05/28/2016 at 07:43PM

24
#2678 - el R / @el_r

06/01/2016 at 10:31PM

24
#2679 - Sasho / @sashho

06/05/2016 at 05:34PM

24
#2680 - Tovenaar Klus / @TovenaarKlus

06/12/2016 at 12:44PM

24
#2681 - いっこつ / @eZb4

07/01/2016 at 05:55AM

24
#2682 - Adam Wilson / @adamlemurwilson

07/01/2016 at 04:26PM

24
#2683 - Jitendra Tulsiani / @j_tulsiani

07/05/2016 at 05:50AM

24
#2684 - Max / @Max77140

07/06/2016 at 10:49AM

24
#2685 - Benji / @benjibenjiii

07/10/2016 at 08:12PM

24
#2686 - 王运 / @640138017

07/11/2016 at 05:32AM

24
#2687 - Ealhad / @Ealhad

07/13/2016 at 10:19PM

24
#2688 - Herbert S. / @herbertshlong

08/02/2016 at 12:45AM

24
#2689 - Christian Guenter / @chris_guenter

08/09/2016 at 07:36PM

24
#2690 - Duncan Rutland / @djrut

08/10/2016 at 01:29AM

24
#2691 - イーサン / @metakirby5

08/18/2016 at 10:00PM

24
#2692 - Nikolay Morev / @kolyuchiy

08/19/2016 at 07:48AM

24
#2693 - John Bucephalus / @AaronHotz

08/24/2016 at 02:29PM

24
#2694 - God / @iamgod

08/31/2016 at 01:32PM

24
#2695 - Kai Middleton / @taraindian

09/01/2016 at 05:37PM

24
#2696 - Brian / @b_turchyn

09/01/2016 at 08:38PM

24
#2697 - Ameer Ayoub / @magicmeeror

09/16/2016 at 06:21PM

24
#2698 - Alex Quach / @imalexquach

09/21/2016 at 09:33PM

24
#2699 - 何晨 / @hechen0_

09/22/2016 at 03:54PM

24
#2700 - Mateusz / @foobar98765

10/02/2016 at 08:02PM