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

16 active golfers, 36 entries

Leaderboard (lowest score wins):
40
#1 - Stanislav / @prstad

08/24/2016 at 01:24PM

41
#2 - Urtica dioica / @udioica

08/05/2016 at 09:34PM

41
#3 - Smylers / @Smylers2

09/09/2016 at 03:36PM

41
#4 - Maricris Bonzo / @seemcat

10/05/2017 at 02:28AM

41
#5 - Sergio / @voyeg3r

10/05/2017 at 11:33PM

41
#6 - John Braxler / @braxler

10/02/2019 at 05:38PM

41
#7 - vimgolfer / @vimgolfer7

10/07/2019 at 06:06AM

41
#8 - hamb / @hamb88140219

02/21/2021 at 08:30PM

41
#9 - Peppa Pig / @PeppaPi95550250

07/02/2024 at 10:01PM

43
#10 - Jorge / @jherreso

07/27/2017 at 05:47AM

44
#11 - SmoggyFog / @SmoggyFog

05/30/2023 at 06:16PM

46
#12 - 김범준 / @kmbmjn

02/05/2020 at 08:18AM

54
#13 - Matt / @mcr05

08/10/2016 at 07:20PM

56
#14 - Louis Caruana / @louiecaruana

08/06/2016 at 03:28AM

56
#15 - Song Zheng / @songz

10/05/2017 at 01:33AM

66
#16 - George Angelopoulos / @g_usermod

08/06/2016 at 12:16AM