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, 24023 entries

Leaderboard (lowest score wins):
22
#241 - The Dimalisher / @zeppelinnn

11/08/2015 at 07:14AM

22
#242 - Robert Goeddel / @f0rdpr3fect

11/09/2015 at 09:15PM

22
#243 - Aaron Mininger / @AMininger

11/09/2015 at 09:59PM

22
#244 - Curt Matz / @sitrucz

11/10/2015 at 07:39PM

22
#245 - kris / @0xkrp

11/11/2015 at 11:24AM

22
#246 - Phil Ting / @philipjting

11/12/2015 at 06:23AM

22
#247 - David Mauskop / @mauskop

11/12/2015 at 07:22PM

22
#248 - Jonathan Lao-Kan / @jlaokan

11/12/2015 at 08:19PM

22
#249 - Lukas Froehlich / @lukasfroehlich

11/12/2015 at 10:54PM

22
#250 - かんじ / @CENT_SIGMA

11/13/2015 at 05:03AM

22
#251 - territorialmale / @territorialmale

11/13/2015 at 11:07AM

22
#252 - Aleksey Zhidkov / @AlexeyZhidkov

11/13/2015 at 11:15AM

22
#253 - Shundan Xiao / @sherryxiao1988

11/15/2015 at 03:59AM

22
#254 - RiccardoSven Risuleo / @riccardosven

11/16/2015 at 08:15AM

22
#255 - Gonzalo Quero / @TheRealThau

11/16/2015 at 03:01PM

22
#256 - Jayce Higgins / @HigginsJayce

11/18/2015 at 09:31PM

22
#257 - AD / @Lievr0

11/21/2015 at 02:27AM

22
#258 - thejojo87 / @thejojo1987

11/21/2015 at 04:19AM

22
#259 - JoeyLyn / @JJoofk

11/21/2015 at 05:11PM

22
#260 - Stoyko Stanchev / @stoykostanchev

11/21/2015 at 11:57PM

22
#261 - chris nojima / @chrisnojima

11/22/2015 at 07:59PM

22
#262 - Angus McInnes / @eigenstuff

11/23/2015 at 12:40PM

22
#263 - Benjamin Schindler / @beschindler

11/23/2015 at 07:53PM

22
#264 - Brian / @bsamek

11/23/2015 at 09:14PM

22
#265 - Corne vd Plas / @CornePlas

11/25/2015 at 04:38PM

22
#266 - Kaue Silveira / @kssilveira

11/25/2015 at 09:54PM

22
#267 - Aaron Blair / @sycrat

11/26/2015 at 07:18AM

22
#268 - EatYourGreens / @VimTwo

11/26/2015 at 03:19PM

22
#269 - Tiger / @xh3zhang

11/26/2015 at 04:21PM

22
#270 - Casey Pearring / @StandardBias

11/27/2015 at 08:34PM