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

5565 active golfers, 24834 entries

Leaderboard (lowest score wins):
22
#241 - Dan Shields / @vedosity

12/03/2015 at 03:22AM

22
#242 - Jiahan Wang / @hijiahanwang123

12/03/2015 at 11:45PM

22
#243 - Phill / @PhillipHermans

12/04/2015 at 12:52AM

22
#244 - YNWP / @ynw_P

12/04/2015 at 09:27AM

22
#245 - Gordon / @gordonczedik

12/04/2015 at 11:43AM

22
#246 - Tek Paul Huynh / @tekhuynh

12/05/2015 at 11:12AM

22
#247 - Patrick Cichon / @the_nQL

12/07/2015 at 05:29PM

22
#248 - Dontneedto Knowit / @DontneedtoK

12/08/2015 at 03:43AM

22
#249 - retro / @tryphopp

12/08/2015 at 08:56AM

22
#250 - argunov sasha / @troglotit

12/08/2015 at 10:40PM

22
#251 - Julian Mendoza / @JmenD1

12/11/2015 at 09:13PM

22
#252 - christos christidis / @christo52130455

12/12/2015 at 06:04AM

22
#253 - Daniel Gray / @DanielFGray

12/14/2015 at 04:40AM

22
#254 - Caek / @Caek_

12/15/2015 at 02:34AM

22
#255 - lucas / @rept357

12/15/2015 at 07:34AM

22
#256 - Jan Path / @jan_path

12/17/2015 at 12:40PM

22
#257 - Charlene Tshos / @charlymul

12/17/2015 at 03:39PM

22
#258 - Alexey Belkov / @larksvroom

12/19/2015 at 06:33PM

22
#259 - Ravil Bayramgalin / @brainopia

12/20/2015 at 05:32PM

22
#260 - Izabel Jelenić / @IzabelJelenic

12/20/2015 at 06:26PM

22
#261 - tzvika ofek / @tzvio

12/21/2015 at 02:04PM

22
#262 - Andrii Maksai / @AMaksai

12/21/2015 at 09:56PM

22
#263 - Aris Kotzias / @ArisKotzias

12/22/2015 at 11:18AM

22
#264 - Fabi / @zehdeh90

12/22/2015 at 10:09PM

22
#265 - Sebastian Nickel / @tumblingwhimsy

12/23/2015 at 02:43AM

22
#266 - Elrrrrrrr / @Elrrrrrrr

12/23/2015 at 09:56AM

22
#267 - Egg / @hammingdistanc1

12/24/2015 at 09:03PM

22
#268 - Sam Stites / @SamStites

12/25/2015 at 05:12AM

22
#269 - aanton / @aanton

12/25/2015 at 11:23AM

22
#270 - Framecurrent / @framecurrent

12/25/2015 at 07:30PM