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

5868 active golfers, 26319 entries

Leaderboard (lowest score wins):
22
#691 - Joseph Simone / @averagejoey2000

11/01/2016 at 12:26AM

22
#692 - Ton van den Heuvel / @tonheuvel

11/01/2016 at 06:44AM

22
#693 - Joe Reddington / @joereddington

11/01/2016 at 11:19AM

22
#694 - juicelink / @juicelink

11/02/2016 at 06:32AM

22
#695 - ZorgroZ / @ZorgroZ

11/03/2016 at 12:26AM

22
#696 - Phin Jensen / @phinjensen

11/04/2016 at 12:05AM

22
#697 - Davis Fields / @i301585

11/04/2016 at 02:16AM

22
#698 - vim golf wolfe / @vimwolfe

11/04/2016 at 07:39PM

22
#699 - Roman / @Po_pi_po

11/05/2016 at 11:58AM

22
#700 - 3514 / @1PGU4eRolvpMmN2

11/05/2016 at 02:54PM

22
#701 - Peter Stuifzand / @pstuifzand

11/05/2016 at 05:34PM

22
#702 - Hao Deng / @haodeng

11/05/2016 at 07:50PM

22
#703 - Manta / @mantathaman

11/05/2016 at 08:10PM

22
#704 - nemonomine / @nemonomine

11/06/2016 at 07:12PM

22
#705 - Bradd Szonye / @bszonye

11/07/2016 at 10:55PM

22
#706 - ann / @anyharder

11/07/2016 at 11:12PM

22
#707 - Dmitriy / @dm_alt

11/08/2016 at 07:11AM

22
#708 - Ignacio Catalina / @ignaciocatalina

11/08/2016 at 12:55PM

22
#709 - gauthier / @hiergaut

11/08/2016 at 09:11PM

22
#710 - 張育瑄 / @harry830622

11/09/2016 at 08:13PM

22
#711 - DJ Fox / @DJ_F0X

11/10/2016 at 03:23AM

22
#712 - vimgolf_temp / @TestVimgolf

11/13/2016 at 01:27AM

22
#713 - Alan Turing / @alantrng

11/13/2016 at 07:54AM

22
#714 - Scott Hoggarth / @Hoggarth

11/13/2016 at 02:16PM

22
#715 - John Newbery / @jonnynewbs

11/14/2016 at 08:58AM

22
#716 - Toscha / @_Toscha_

11/14/2016 at 07:35PM

22
#717 - fx32gamer / @fx32gamer

11/14/2016 at 10:21PM

22
#718 - Andrei Tudor / @csjncjascjnzsc

11/17/2016 at 06:09PM

22
#719 - raketeneis / @raketeneis

11/17/2016 at 08:25PM

22
#720 - i1464083 / @i1464083

11/18/2016 at 10:42AM