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

6800 active golfers, 30755 entries

Leaderboard (lowest score wins):
22
#1561 - MEschenbacher / @eschenbacher_m

11/27/2018 at 11:54AM

22
#1562 - Mathieu Chataigner / @mchataigner

11/27/2018 at 02:17PM

22
#1563 - Egor Fedkin / @Jet_Flynn

11/28/2018 at 11:56AM

22
#1564 - unclewangshushu / @shuwushu

11/29/2018 at 05:00AM

22
#1565 - Anant Mishra / @anantanni22

11/30/2018 at 08:09AM

22
#1566 - Maas Lalani / @maaslalani

12/02/2018 at 05:22PM

22
#1567 - band / @band26376522

12/04/2018 at 07:39PM

22
#1568 - shw / @shw30127562

12/05/2018 at 03:19AM

22
#1569 - Cabal51 / @Cabal51

12/05/2018 at 09:33PM

22
#1570 - Mitch / @miffstarr

12/09/2018 at 04:04AM

22
#1571 - Anon75639 / @anon75639

12/09/2018 at 11:30PM

22
#1572 - lofoneax / @lofoneax

12/12/2018 at 02:24AM

22
#1573 - Ruby Sapphire / @RubySapphire20

12/13/2018 at 03:33PM

22
#1574 - Cocquecigrues / @cocquecigrues

12/14/2018 at 02:52PM

22
#1575 - Zeeshan Ahmad / @zeeshahmad

12/15/2018 at 08:47PM

22
#1576 - Evyk / @Mr_Evyk

12/16/2018 at 08:00AM

22
#1577 - Théo / @Theodnls

12/16/2018 at 04:44PM

22
#1578 - Nicolas Decayeux / @NicolasDecayeu1

12/17/2018 at 06:13PM

22
#1579 - Charlie Le / @charlietle

12/18/2018 at 12:10AM

22
#1580 - Kris Ezra / @kris_ezra

12/18/2018 at 04:21AM

22
#1581 - guxbug / @guxbug1

12/18/2018 at 04:14PM

22
#1582 - heppen / @heppen_He

12/19/2018 at 01:39AM

22
#1583 - Alexandros Giouzenis / @agiouz

12/19/2018 at 10:10AM

22
#1584 - Steven Bell / @stevenbell

12/19/2018 at 06:18PM

22
#1585 - Julien Harbulot / @julienharbulot

12/20/2018 at 02:11AM

22
#1586 - Timur Celik / @clktmr

12/20/2018 at 12:47PM

22
#1587 - Bård Dybwad Kristensen / @BardDybwad

12/21/2018 at 02:01PM

22
#1588 - Ackman Syntax Error / @AckmanSux

12/21/2018 at 02:47PM

22
#1589 - Jake Schurch / @jake_schurch

12/26/2018 at 12:58AM

22
#1590 - Slawek Ligus / @ooz_ie

12/26/2018 at 10:14PM