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
#2251 - Ryan Marcotte / @ryanjmarcotte

11/10/2015 at 11:51PM

23
#2252 - VimGolfUser / @UserVim

11/10/2015 at 11:59PM

23
#2253 - Jonas / @jonaslasauskas

11/17/2015 at 01:31PM

23
#2254 - emblox / @emblox

11/19/2015 at 03:22AM

23
#2255 - Ryuichiro / @ryuichiro44

11/19/2015 at 02:09PM

23
#2256 - Mike McGowan / @mikemcgowan75

11/19/2015 at 02:35PM

23
#2257 - Rickard Fransson / @xxRion

11/20/2015 at 02:13PM

23
#2258 - kleiduif / @bertwinwubs

11/28/2015 at 11:14PM

23
#2259 - Zack Bleach / @zackbleach

11/29/2015 at 03:18AM

23
#2260 - Tibor Claassen / @codebeige

11/29/2015 at 06:51PM

23
#2261 - Michal Sylwester / @msylw

12/03/2015 at 12:21AM

23
#2262 - kiou / @smallletterquu

12/05/2015 at 12:19AM

23
#2263 - Li Nuo / @li_nuo

12/08/2015 at 03:16PM

23
#2264 - Brian D. Goad / @bbbco

12/08/2015 at 09:50PM

23
#2265 - Hisco / @francis_vega

12/10/2015 at 10:39PM

23
#2266 - Ralph Canapa / @ralphcanapa

12/14/2015 at 03:11PM

23
#2267 - Charlie / @wookie_giant

12/19/2015 at 03:26AM

23
#2268 - Razzi / @Razzzzi

12/20/2015 at 09:23PM

23
#2269 - Oisin Carroll / @oisincar

01/03/2016 at 05:23PM

23
#2270 - alcinos / @alcinos69

01/24/2016 at 11:39AM

23
#2271 - Elias Nyström / @nighstrom

01/26/2016 at 02:11PM

23
#2272 - Jasbir Singh / @jasbirsingh11

01/30/2016 at 01:08AM

23
#2273 - Josh Sammut / @JoshJoshsammut

02/02/2016 at 01:56AM

23
#2274 - Ian Trophy / @prfrgg

02/04/2016 at 08:17PM

23
#2275 - Laurent Atlan / @laurentatlan1

02/08/2016 at 09:33PM

23
#2276 - GarrettPeterson / @GarrettPeterson

02/09/2016 at 12:32PM

23
#2277 - Colin Foster / @Poolshark049

02/10/2016 at 04:28PM

23
#2278 - Janine Cheng / @janineist

02/13/2016 at 04:28AM

23
#2279 - Alexej Kowalew / @AlexejKowalew

02/20/2016 at 06:38PM

23
#2280 - Константин / @xni

02/22/2016 at 07:26AM