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):
22
#2101 - Nicu Chiciuc / @nicu31

04/03/2020 at 05:49AM

22
#2102 - Daniel Fleischman / @vimgolfdaniel

04/05/2020 at 08:41PM

22
#2103 - Moatvald / @moatvald

04/06/2020 at 03:00PM

22
#2104 - Charles / @charlesarcin

04/09/2020 at 12:35AM

22
#2105 - Atzz / @AtzzCokeK

04/11/2020 at 05:49AM

22
#2106 - cyndiii-development / @cyndiiidevelop1

04/11/2020 at 05:56AM

22
#2107 - edvrds / @edvrds

04/12/2020 at 09:14AM

22
#2108 - Vinh Vu / @vinhhv94

04/13/2020 at 01:05AM

22
#2109 - Anon Y. Mous / @AnonYMo50660689

04/17/2020 at 12:24PM

22
#2110 - Sikker Rosendal / @srosendaldk

04/17/2020 at 01:06PM

22
#2111 - Zachary Lee / @abstractlyZach

04/22/2020 at 03:27AM

22
#2112 - まーしぃ🐢💨 / @marcymaplemug

04/22/2020 at 12:42PM

22
#2113 - The Legy / @thelegy

04/23/2020 at 01:55PM

22
#2114 - sherman / @sherman37029653

04/24/2020 at 01:28AM

22
#2115 - Victor / @victor_rma

04/24/2020 at 03:12AM

22
#2116 - John Sumner / @rjsumner

04/26/2020 at 01:42PM

22
#2117 - Florian Martin / @Florian72650031

04/28/2020 at 02:31AM

22
#2118 - 优优子 / @YuiTH7

04/28/2020 at 10:52AM

22
#2119 - Arthur Goodman / @ArthurGoodman3

04/29/2020 at 03:37PM

22
#2120 - Jens Nolte / @jens_n

04/29/2020 at 04:30PM

22
#2121 - Shivam mehta / @maniac_en

05/01/2020 at 11:07AM

22
#2122 - Coding Adventures / @linqbridgevs

05/02/2020 at 12:35AM

22
#2123 - Samuel Vaiter / @vaiter

05/05/2020 at 01:23PM

22
#2124 - MPDR / @MPDR200011

05/05/2020 at 02:41PM

22
#2125 - Slava Gachkaylo / @slavyan

05/05/2020 at 05:38PM

22
#2126 - Pawel Wenda / @pwlwnd

05/05/2020 at 10:30PM

22
#2127 - Morten Paulsen / @MortenP96

05/07/2020 at 12:06AM

22
#2128 - haipeng li / @HaipengLie

05/07/2020 at 11:05AM

22
#2129 - john / @john99857791

05/07/2020 at 07:19PM

22
#2130 - Iliyapichugin / @iliyapichugin

05/07/2020 at 10:02PM