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
#2431 - ハヤシ / @0__098

07/25/2018 at 02:26PM

23
#2432 - Yifan / @tr4656

07/31/2018 at 12:05AM

23
#2433 - Madelyn Freed / @EcoBummer

08/02/2018 at 06:20PM

23
#2434 - Lai Bai / @laibai321

08/16/2018 at 11:05AM

23
#2435 - Andreas Bolstad / @andreasblstd

08/28/2018 at 07:32PM

23
#2436 - nobody / @nobody31789575

09/09/2018 at 10:10PM

23
#2437 - Stefan Heyder / @Astheny_

09/17/2018 at 11:40AM

23
#2438 - Brandon Hops / @BrandonHops

09/29/2018 at 06:05PM

23
#2439 - Julian Okuyiga / @julianokuyiga

10/05/2018 at 10:54PM

23
#2440 - Stefan Stutz / @0VIIXI

10/10/2018 at 07:44PM

23
#2441 - Dima Matrohin / @wo_ogy

10/25/2018 at 09:29PM

23
#2442 - nenuon / @nenuon61

10/28/2018 at 02:26AM

23
#2443 - Noah Epstein / @NoahJEpstein

10/30/2018 at 03:54AM

23
#2444 - ✖❎✖𝔩'𝔒𝔩𝔦𝔳𝔢✖❎✖ / @olivschwab

10/30/2018 at 10:04AM

23
#2445 - Zenghanzhang / @hzengroger

11/10/2018 at 06:01AM

23
#2446 - Matze / @ebaharilikult

11/19/2018 at 06:56AM

23
#2447 - noffle 🌱 / @noffle

11/22/2018 at 05:03PM

23
#2448 - Christoffer Nilsson / @chrnils

11/24/2018 at 12:25PM

23
#2449 - Performa / @performa6400

11/28/2018 at 04:05PM

23
#2450 - Travis Wulff / @Ffluwsivart

12/15/2018 at 05:47AM

23
#2451 - Bart Kleijngeld / @BartKleijngeld

12/23/2018 at 10:22PM

23
#2452 - Jonny Wilson / @thejondom

12/26/2018 at 08:21PM

23
#2453 - segfaultノススメ / @umaiumi

01/13/2019 at 05:31AM

23
#2454 - Shahin Mohammad Sali / @shaahiinms

02/05/2019 at 10:06PM

23
#2455 - noname / @noname75810867

02/09/2019 at 06:14AM

23
#2456 - Alexandre Pinho / @lxpnh98

02/11/2019 at 11:36PM

23
#2457 - Duke Du / @DukeDu2

03/19/2019 at 02:52AM

23
#2458 - Mark Stillwell / @marklee77

03/31/2019 at 10:57PM

23
#2459 - Bruno / @kerouanton

04/14/2019 at 07:49AM

23
#2460 - ow / @ow34480012

04/28/2019 at 09:52PM