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

7425 active golfers, 33647 entries

Leaderboard (lowest score wins):
22
#211 - かんじ / @CENT_SIGMA

11/13/2015 at 05:03AM

22
#212 - territorialmale / @territorialmale

11/13/2015 at 11:07AM

22
#213 - Aleksey Zhidkov / @AlexeyZhidkov

11/13/2015 at 11:15AM

22
#214 - Shundan Xiao / @sherryxiao1988

11/15/2015 at 03:59AM

22
#215 - RiccardoSven Risuleo / @riccardosven

11/16/2015 at 08:15AM

22
#216 - Gonzalo Quero / @TheRealThau

11/16/2015 at 03:01PM

22
#217 - Jayce Higgins / @HigginsJayce

11/18/2015 at 09:31PM

22
#218 - AD / @Lievr0

11/21/2015 at 02:27AM

22
#219 - thejojo87 / @thejojo1987

11/21/2015 at 04:19AM

22
#220 - JoeyLyn / @JJoofk

11/21/2015 at 05:11PM

22
#221 - Stoyko Stanchev / @stoykostanchev

11/21/2015 at 11:57PM

22
#222 - chris nojima / @chrisnojima

11/22/2015 at 07:59PM

22
#223 - Angus McInnes / @eigenstuff

11/23/2015 at 12:40PM

22
#224 - Benjamin Schindler / @beschindler

11/23/2015 at 07:53PM

22
#225 - Brian / @bsamek

11/23/2015 at 09:14PM

22
#226 - Corne vd Plas / @CornePlas

11/25/2015 at 04:38PM

22
#227 - Kaue Silveira / @kssilveira

11/25/2015 at 09:54PM

22
#228 - Aaron Blair / @sycrat

11/26/2015 at 07:18AM

22
#229 - EatYourGreens / @VimTwo

11/26/2015 at 03:19PM

22
#230 - Tiger / @xh3zhang

11/26/2015 at 04:21PM

22
#231 - Casey Pearring / @StandardBias

11/27/2015 at 08:34PM

22
#232 - Marty Boren / @beanmaximalist

11/28/2015 at 02:28AM

22
#233 - Tommy Wu / @TommyJSWu

11/28/2015 at 08:48PM

22
#234 - Ethan Veres / @ethanveres

11/29/2015 at 12:10AM

22
#235 - Alain / @ducouloa

11/29/2015 at 08:55PM

22
#236 - Roberto Alegro / @robertoaall

11/30/2015 at 01:43PM

22
#237 - Pure OG Kush / @mcnuggies420

12/01/2015 at 08:46PM

22
#238 - Jon / @jreimels

12/01/2015 at 09:05PM

22
#239 - swordgard / @swordgardctf

12/01/2015 at 10:15PM

22
#240 - Alexei Smychagin / @smalex69

12/02/2015 at 09:40PM