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

7401 active golfers, 33552 entries

Leaderboard (lowest score wins):
22
#781 - leroy / @leroyalien

01/28/2017 at 06:40AM

22
#782 - Avian Y / @y_avian

01/31/2017 at 07:29AM

22
#783 - samuel / @samuelcs12

01/31/2017 at 09:02PM

22
#784 - Zhouheng Sun / @onionhoney

02/01/2017 at 07:52AM

22
#785 - Ghost of Juan Pierre / @GhostJuanPierre

02/02/2017 at 03:41PM

22
#786 - aselaIllayaparachchi / @asela38

02/04/2017 at 01:05PM

22
#787 - setNull / @dadaojiemo

02/05/2017 at 12:45PM

22
#788 - Vim Golf / @vimg01f

02/11/2017 at 10:41PM

22
#789 - Josfefson Fraga / @josefs0n

02/14/2017 at 06:09PM

22
#790 - eban / @eban

02/17/2017 at 02:58PM

22
#791 - andresote / @andresote

02/18/2017 at 09:33PM

22
#792 - David Elliott / @david_b_elliott

02/19/2017 at 02:05AM

22
#793 - J / @Orsabon

02/19/2017 at 03:08AM

22
#794 - Alexandre Jasmin / @ajasmin

02/19/2017 at 04:21AM

22
#795 - Victor Chabbert / @victor_chabbert

02/20/2017 at 02:04PM

22
#796 - Edras / @Edras41862627

02/20/2017 at 03:40PM

22
#797 - Lubinator / @Lubinator2

02/20/2017 at 03:40PM

22
#798 - Tim Grebien / @tiggg

02/21/2017 at 11:10AM

22
#799 - Notifications / @Notifications_m

02/22/2017 at 09:06PM

22
#800 - sennin / @senninek

02/24/2017 at 11:59AM

22
#801 - Cheer / @yougec

02/25/2017 at 03:53AM

22
#802 - Márton Németh / @nemarci42

02/28/2017 at 07:14PM

22
#803 - David Lignell / @davidlignell

03/02/2017 at 02:27PM

22
#804 - Julio Farah / @juliofarah

03/02/2017 at 09:21PM

22
#805 - Nick Spoon / @be_the_spoon

03/05/2017 at 12:29AM

22
#806 - pheech / @pheech42

03/05/2017 at 02:07PM

22
#807 - Clément Beauseigneur / @clement_bc

03/05/2017 at 04:27PM

22
#808 - M Lang / @morey_lang

03/05/2017 at 08:17PM

22
#809 - Thomas Nelson / @emeraldemon

03/05/2017 at 11:20PM

22
#810 - Michael Longerich / @mlongerich

03/06/2017 at 05:12AM