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

6784 active golfers, 30704 entries

Leaderboard (lowest score wins):
23
#2521 - Paweł Kupiec / @pawelecXX

02/03/2020 at 01:26AM

23
#2522 - cardoiltardo / @cardoiltardo

02/03/2020 at 11:28PM

23
#2523 - Robber Toe / @robbertoe

02/06/2020 at 04:18AM

23
#2524 - xiote / @xiote2

02/06/2020 at 06:38PM

23
#2525 - Linghao Du / @LinghaoDu

02/10/2020 at 04:15AM

23
#2526 - Romain Heller / @Rom1deTroyes

02/13/2020 at 12:20PM

23
#2527 - Steffen / @Pions90

02/14/2020 at 01:23PM

23
#2528 - KingYames / @JamesZeHunter

02/17/2020 at 01:47AM

23
#2529 - Bradley Pankow / @BTPankow

02/21/2020 at 09:14PM

23
#2530 - floyd / @floyd10086

02/22/2020 at 04:27PM

23
#2531 - Chris League / @chrisleague

02/22/2020 at 08:49PM

23
#2532 - Mushan Yang / @mushanyoung

02/25/2020 at 11:55PM

23
#2533 - vimgolfplayer92 / @vimgolfplayer92

02/29/2020 at 12:05PM

23
#2534 - Joakim Strandberg / @UJStrandberg

03/03/2020 at 01:30PM

23
#2535 - Vetle Neumann / @NeumannVetle

03/13/2020 at 02:40PM

23
#2536 - Tomas / @Tombakas

03/14/2020 at 03:47AM

23
#2537 - BnnGolfer / @BnnGolfer

03/19/2020 at 10:29PM

23
#2538 - 이경룡 / @smartman1996

03/21/2020 at 01:40PM

23
#2539 - Nathan Hartman / @hnathan918

04/01/2020 at 09:41PM

23
#2540 - Marco / @Marco24456514

04/02/2020 at 01:16PM

23
#2541 - Lop / @Numeross_

04/02/2020 at 09:55PM

23
#2542 - mury liang / @muryliang

04/04/2020 at 06:31AM

23
#2543 - Petru-Armand Bancila / @petruarmand

04/07/2020 at 03:57AM

23
#2544 - Ray Guan / @guanxi555

04/07/2020 at 01:14PM

23
#2545 - mackermann / @mackermann12

04/12/2020 at 06:44PM

23
#2546 - zesk06 / @zesk06

04/19/2020 at 06:33AM

23
#2547 - Stian Selnes / @stianse

04/24/2020 at 06:52AM

23
#2548 - abdellah hariti / @_hariti

04/25/2020 at 02:04PM

23
#2549 - yyang / @yyang25803679

05/03/2020 at 07:49AM

23
#2550 - Antoine Colson / @antoinefcolson

05/06/2020 at 04:39AM