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 by @songz:

Unlock 1 remaining solutions by signing in and submitting your own entry
Created by: @g_usermod

17 active golfers, 44 entries

Solutions by @songz:
56
#16 - Song Zheng / @songz

10/05/2017 at 01:33AM