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

6715 active golfers, 30335 entries

Leaderboard (lowest score wins):
32
#5371 - LiterallyJustForVimGolf / @just_vim

02/04/2019 at 07:33AM

32
#5372 - Oleksii Oleksenko / @oleksii_o

02/07/2019 at 01:33PM

32
#5373 - Colby Brown / @colbyabrown

02/11/2019 at 02:30AM

32
#5374 - Mathieu Chan / @Bazoo77197

02/12/2019 at 01:51PM

32
#5375 - David Feng / @davidfeng88

02/17/2019 at 12:42AM

32
#5376 - Nick Lucent / @NickLucent

02/21/2019 at 12:38AM

32
#5377 - Carsano / @DamienFbn

02/28/2019 at 12:36PM

32
#5378 - Der Wucher / @derwucher

03/02/2019 at 06:05PM

32
#5379 - Sam Weitzman / @weitzman_sam

03/02/2019 at 08:30PM

32
#5380 - Kevin Tindall / @kevinkjt2000

03/08/2019 at 01:26AM

32
#5381 - avery / @averyjwhitaker

03/15/2019 at 02:39PM

32
#5382 - Vimfiz / @vimfiz

03/20/2019 at 11:51PM

32
#5383 - clint / @_clintharrison

03/29/2019 at 04:28PM

32
#5384 - Marcus Höjvall / @softarn88

04/01/2019 at 11:36AM

32
#5385 - Lewis Guignard / @LewisGuignard

04/13/2019 at 12:13AM

32
#5386 - Mekhi Thomas / @ReelGreenRanger

04/22/2019 at 10:54PM

32
#5387 - rvnjsphdmn / @rvnjsphdmn

05/01/2019 at 07:26AM

32
#5388 - _ / @bastla

05/02/2019 at 12:25PM

32
#5389 - Brett / @sudobrett

05/08/2019 at 06:16PM

32
#5390 - Nils ANDRÉ CHANG / @NilsIRL

05/08/2019 at 09:57PM

32
#5391 - Justus Thane / @justusthane

05/09/2019 at 03:06PM

32
#5392 - おけ / @ok8omk

05/27/2019 at 04:26AM

32
#5393 - version 34.053a / @Age_of_machines

05/27/2019 at 01:55PM

32
#5394 - Stefan Schneider / @hinogi

06/16/2019 at 05:04AM

32
#5395 - Furopure / @furopure

06/19/2019 at 03:54AM

32
#5396 - _ / @fracarb85

07/06/2019 at 03:18PM

32
#5397 - Adrian Dmitra / @AdrianDmitra

07/09/2019 at 03:54PM

32
#5398 - Florent Uguet / @FlorentUguet

07/10/2019 at 09:55AM

32
#5399 - fisch@emacs / @WingsORC

07/20/2019 at 03:11PM

32
#5400 - Karl Barrus / @klbarrus

07/21/2019 at 04:19AM