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

6901 active golfers, 31234 entries

Leaderboard (lowest score wins):
22
#1891 - Brice Letcher / @bricoletc

08/29/2019 at 08:35PM

22
#1892 - Menaal Cochran / @CochranMenaal

09/01/2019 at 02:12AM

22
#1893 - jonathangai / @jonathangai1

09/01/2019 at 08:38PM

22
#1894 - Dave Goddard / @dgodd79

09/05/2019 at 12:57AM

22
#1895 - Rohan Verma / @rhnvrm

09/05/2019 at 09:47PM

22
#1896 - Zach Ingbretsen / @ZIngbretsen

09/06/2019 at 04:21PM

22
#1897 - Vim Player / @PlayerVim

09/08/2019 at 12:33PM

22
#1898 - Nathan Bendich / @neonb88

09/08/2019 at 02:43PM

22
#1899 - Karan Gajwani / @karangb

09/09/2019 at 10:24AM

22
#1900 - Andac Safa / @SanDForcE94

09/10/2019 at 07:44AM

22
#1901 - PhilippeDupont / @Phil_Dupont

09/10/2019 at 03:28PM

22
#1902 - Mark / @markfilus

09/12/2019 at 02:18AM

22
#1903 - diwa / @Di_nate_

09/12/2019 at 03:24AM

22
#1904 - Khamnhoui-Boulom / @k_nhoui

09/16/2019 at 08:02AM

22
#1905 - Cassandra / @kascein

09/17/2019 at 05:02AM

22
#1906 - Simon / @SimontheLeg

09/17/2019 at 01:37PM

22
#1907 - Viktor Styrud / @ViktorStyrud

09/18/2019 at 09:09AM

22
#1908 - BHydden / @HyddenRiver

09/19/2019 at 02:32AM

22
#1909 - vimgolfer / @vimgolfer7

09/20/2019 at 04:07AM

22
#1910 - Ollin Boer Bohan / @madebyollin

09/22/2019 at 03:43PM

22
#1911 - Ben Carney / @ben_carney

09/23/2019 at 10:37PM

22
#1912 - IronTiger Park / @IrontigerP

09/24/2019 at 03:45AM

22
#1913 - Miko / @_m_ik_o_

09/24/2019 at 05:54PM

22
#1914 - lxgreen / @lxgreen3

09/27/2019 at 06:50AM

22
#1915 - Chen-Hung Wu / @utah12005

09/28/2019 at 04:15AM

22
#1916 - Jake Nixon / @thejakenixon

09/29/2019 at 04:40AM

22
#1917 - Sebastien Baudray / @sbaudray

09/29/2019 at 05:00PM

22
#1918 - Albert / @Write_Code

10/02/2019 at 04:47AM

22
#1919 - Sverre Rakkenes / @_Snap_

10/03/2019 at 01:56PM

22
#1920 - Sebastian / @diasitede

10/03/2019 at 03:33PM