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 @SmoggyFog:

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

17 active golfers, 44 entries

Solutions by @SmoggyFog:
44
#12 - SmoggyFog / @SmoggyFog

05/30/2023 at 06:16PM