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 57a4ec036f04c40bf8000001

ascii-art diamond

Simple ascii-art diamond. The grid is 40x40.

Start file
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
End file
                   /\                   
                  // \                  
                 ///  \                 
                ////   \                
               /////    \               
              //////     \              
             ///////      \             
            ////////       \            
           /////////        \           
          //////////         \          
         ///////////          \         
        ////////////           \        
       /////////////            \       
      //////////////             \      
     ///////////////              \     
    ////////////////               \    
   /////////////////                \   
  //////////////////                 \  
 ///////////////////                  \ 
////////////////////                   \
\                   ////////////////////
 \                  /////////////////// 
  \                 //////////////////  
   \                /////////////////   
    \               ////////////////    
     \              ///////////////     
      \             //////////////      
       \            /////////////       
        \           ////////////        
         \          ///////////         
          \         //////////          
           \        /////////           
            \       ////////            
             \      ///////             
              \     //////              
               \    /////               
                \   ////                
                 \  ///                 
                  \ //                  
                   \/                   

View Diff

1,40c1,40
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
< ----------------------------------------
---
>                    /\                   
>                   // \                  
>                  ///  \                 
>                 ////   \                
>                /////    \               
>               //////     \              
>              ///////      \             
>             ////////       \            
>            /////////        \           
>           //////////         \          
>          ///////////          \         
>         ////////////           \        
>        /////////////            \       
>       //////////////             \      
>      ///////////////              \     
>     ////////////////               \    
>    /////////////////                \   
>   //////////////////                 \  
>  ///////////////////                  \ 
> ////////////////////                   \
> \                   ////////////////////
>  \                  /////////////////// 
>   \                 //////////////////  
>    \                /////////////////   
>     \               ////////////////    
>      \              ///////////////     
>       \             //////////////      
>        \            /////////////       
>         \           ////////////        
>          \          ///////////         
>           \         //////////          
>            \        /////////           
>             \       ////////            
>              \      ///////             
>               \     //////              
>                \    /////               
>                 \   ////                
>                  \  ///                 
>                   \ //                  
>                    \/                   

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 16 remaining solutions by signing in and submitting your own entry
#17 George Angelopoulos / @g_usermod - Score: 66 - 08/06/16 @ 00:16
VGr L<C-V>Mj21|r/j$qq<C-V>G$r jhq19@qhh20@='r\kh'<CR>$20@@hqq<C-V>M20|r/jhq19@qZZ

0 comments


Created by: @g_usermod

17 active golfers, 44 entries

Leaderboard (lowest score wins):
39
#1 - Peppa Pig / @PeppaPigSg

07/21/2024 at 09:30AM

40
#2 - Stanislav / @prstad

08/24/2016 at 01:24PM

41
#3 - Urtica dioica / @udioica

08/05/2016 at 09:34PM

41
#4 - "Smylers" / @Smylers2

09/09/2016 at 03:36PM

41
#5 - Maricris Bonzo / @seemcat

10/05/2017 at 02:28AM

41
#6 - Sergio / @voyeg3r

10/05/2017 at 11:33PM

41
#7 - John Braxler / @braxler

10/02/2019 at 05:38PM

41
#8 - vimgolfer / @vimgolfer7

10/07/2019 at 06:06AM

41
#9 - hamb / @hamb88140219

02/21/2021 at 08:30PM

41
#10 - nickGPT / @nickandbro

08/28/2024 at 03:08AM

43
#11 - Jorge / @jherreso

07/27/2017 at 05:47AM

44
#12 - SmoggyFog / @SmoggyFog

05/30/2023 at 06:16PM

46
#13 - 김범준 / @kmbmjn

02/05/2020 at 08:18AM

54
#14 - Matt / @mcr05

08/10/2016 at 07:20PM

56
#15 - Louis Caruana / @louiecaruana

08/06/2016 at 03:28AM

56
#16 - Song Zheng / @songz

10/05/2017 at 01:33AM

66
#17 - George Angelopoulos / @g_usermod

08/06/2016 at 12:16AM