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
#661 - John Hassell / @jhassell

10/11/2016 at 01:43PM

22
#662 - i5513 / @i5513

10/12/2016 at 09:56PM

22
#663 - esquifit / @henroboke

10/13/2016 at 06:20PM

22
#664 - Gabriel Gallardo / @gabrielgallardo

10/15/2016 at 06:20AM

22
#665 - Rafuaeru / @fuckingnickname

10/16/2016 at 09:54AM

22
#666 - Brian Mego / @Major251

10/16/2016 at 10:16PM

22
#667 - Josh Callender / @Saponifi3d

10/17/2016 at 01:26AM

22
#668 - Кирилл / @cyril_sad

10/17/2016 at 08:00AM

22
#669 - Piotr Cyrankiewicz / @jedihenryk

10/17/2016 at 08:32PM

22
#670 - João Sousa Andrade / @thejoaosa

10/17/2016 at 10:05PM

22
#671 - Domus Code / @DomusCode

10/18/2016 at 08:12PM

22
#672 - Karl Lundquist / @karllundquist

10/18/2016 at 08:54PM

22
#673 - S33 Dunda / @s33dUnda

10/22/2016 at 12:49AM

22
#674 - KangHun Seo / @shirano80

10/22/2016 at 05:43AM

22
#675 - Kim Grytøyr / @kimgrytoyr

10/22/2016 at 03:38PM

22
#676 - Pierre Sugar / @sugaryourcoffex

10/23/2016 at 12:30PM

22
#677 - eozd / @e_ozd

10/23/2016 at 12:43PM

22
#678 - Adrian K. Eriksen / @adrianke

10/23/2016 at 02:39PM

22
#679 - Bill Ruddock / @biinari

10/25/2016 at 04:02AM

22
#680 - 子皓翁 / @geniusgordon

10/25/2016 at 05:41AM

22
#681 - Bastiaan Deknudt / @Tionkje

10/25/2016 at 07:17PM

22
#682 - Phoenix / @betentacled

10/25/2016 at 11:30PM

22
#683 - JerryLee / @varXinYuan

10/27/2016 at 11:24AM

22
#684 - F B / @felixbigg

10/27/2016 at 02:15PM

22
#685 - Fluke / @co_NP_complete

10/27/2016 at 11:44PM

22
#686 - Taco V / @LasNachosGolfs

10/28/2016 at 10:06PM

22
#687 - Anas Salah Eddin / @asalaheddin

10/29/2016 at 01:50AM

22
#688 - macmental / @macmental

10/29/2016 at 03:36AM

22
#689 - Kracejic / @kracejic

10/30/2016 at 08:10PM

22
#690 - AntonioWong / @AntonioWong

10/31/2016 at 08:43PM