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

6912 active golfers, 31292 entries

Leaderboard (lowest score wins):
24
#2701 - travv0 / @travv0

10/03/2016 at 04:44PM

24
#2702 - Test User / @TestUserIgnore

10/05/2016 at 07:16PM

24
#2703 - Vihan B / @vihanbh

10/14/2016 at 02:19AM

24
#2704 - Tomas[Tomsik68] / @tomsik68

10/14/2016 at 09:56AM

24
#2705 - Shashwat Raghuvanshi / @Shashwat_sr123

10/15/2016 at 04:29PM

24
#2706 - Emil Rönnbäck / @emilronnback

10/26/2016 at 10:32AM

24
#2707 - Simon Plantinga / @SimonPlantinga

10/28/2016 at 03:25PM

24
#2708 - Adrian Stanev / @AdrianStanev

10/30/2016 at 06:57AM

24
#2709 - Guillermo Guirao / @Funkatic

11/23/2016 at 03:25PM

24
#2710 - Никита Канунников / @NIikitaK

12/04/2016 at 09:19AM

24
#2711 - Siddharth Shukla / @thunderboltsid

12/08/2016 at 01:01AM

24
#2712 - Sarin Durong / @Sarin4Du

12/11/2016 at 08:58AM

24
#2713 - WoodyMemento / @WoodyMemento

12/17/2016 at 12:27AM

24
#2714 - Mattias GABRIEL / @matou008

12/20/2016 at 02:59PM

24
#2715 - John lolcats Manst / @lolcatsman

12/21/2016 at 08:09AM

24
#2716 - Marcel Akkerman / @MarcelAkkerman

12/21/2016 at 10:08AM

24
#2717 - teacerjug / @teacerjug

12/25/2016 at 09:17PM

24
#2718 - Hugo Sanchón / @sanchon

01/16/2017 at 02:54PM

24
#2719 - Sushrut Shirole / @sushrutshirole

01/20/2017 at 02:50AM

24
#2720 - Riz Joj / @rizjoj

01/27/2017 at 04:50AM

24
#2721 - Michael Topal / @h4ckt1c

01/27/2017 at 09:43AM

24
#2722 - christ himself / @CodeTiago

01/27/2017 at 12:29PM

24
#2723 - Elizabeth / @sprinkles418

02/10/2017 at 12:34AM

24
#2724 - Laurent Stacul / @stac47

02/17/2017 at 10:33AM

24
#2725 - TheProgrammer971 / @tp971

02/23/2017 at 09:29PM

24
#2726 - Bennett Rennier / @BennettRennier

02/26/2017 at 08:12PM

24
#2727 - Alex Ambarchian / @alex_ambarch

03/01/2017 at 03:11AM

24
#2728 - jack / @jack53053635

03/09/2017 at 09:55PM

24
#2729 - Matt Decuir / @experimatt

03/24/2017 at 05:02PM

24
#2730 - Brian Hall / @_bruab_

04/07/2017 at 01:17PM