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
#61 - SundaraRaman / @digital_carver

08/23/2015 at 09:54AM

22
#62 - Dennis Burke / @ikirudennis

08/24/2015 at 01:06PM

22
#63 - No way / @korgmademedothi

08/24/2015 at 09:38PM

22
#64 - Dennis Li / @_DennisLi

08/25/2015 at 06:50AM

22
#65 - Ryan / @eatsleephack_

08/27/2015 at 01:25AM

22
#66 - Jonáš Šerých / @serycjon

08/27/2015 at 08:38AM

22
#67 - daniel olsson / @glajan

08/27/2015 at 04:41PM

22
#68 - Samir / @ModulSam

08/27/2015 at 10:24PM

22
#69 - Osleg aka Akira ^_^ / @4k1r4

08/28/2015 at 02:43AM

22
#70 - JS / @jjohsan

08/29/2015 at 08:57AM

22
#71 - T A / @SirAviles

08/29/2015 at 11:59AM

22
#72 - n / @d3m1gd

08/29/2015 at 01:54PM

22
#73 - Sime Buljac / @sim_bul

08/31/2015 at 12:38AM

22
#74 - Aleksandr Block / @AleksandrBlock

08/31/2015 at 01:56PM

22
#75 - oscar / @zonza_mas

09/02/2015 at 10:04AM

22
#76 - Jonas / @irubataru

09/03/2015 at 10:36PM

22
#77 - François Connétable / @fco38

09/06/2015 at 08:01PM

22
#78 - Igor Martynov / @snailbaron

09/07/2015 at 12:15AM

22
#79 - g10181255 / @g10181255

09/07/2015 at 08:10PM

22
#80 - Mike Rayner / @mikesfake

09/08/2015 at 05:16AM

22
#81 - Irina Crystal / @irina_crystal

09/08/2015 at 01:15PM

22
#82 - Sebastien Charret / @SCharret

09/08/2015 at 05:04PM

22
#83 - Tamas Gal (Tom) / @tamasgal

09/09/2015 at 03:28PM

22
#84 - MikeT / @mik3t

09/09/2015 at 10:45PM

22
#85 - vimgolf jonnyb / @vimgolf_jonnyb

09/10/2015 at 10:57AM

22
#86 - Joey / @joeyism101

09/11/2015 at 01:18AM

22
#87 - Jiří Chára / @JiriChara

09/11/2015 at 07:39AM

22
#88 - Max M / @_maxmel

09/11/2015 at 05:15PM

22
#89 - Gerhard Gappmeier / @gergap

09/11/2015 at 07:45PM

22
#90 - Yann Vanhalewyn / @yannvanhalewyn

09/12/2015 at 05:26AM