How to detect the position of window in vim
        Posted  
        
            by Yogesh Arora
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Yogesh Arora
        
        
        
        Published on 2010-03-18T22:09:20Z
        Indexed on 
            2010/03/18
            22:11 UTC
        
        
        Read the original article
        Hit count: 531
        
I am trying to customize the mappings for vimdiff and make them similar to winmerge
In a vertical 2 way split, I want to map alt-left <a-left> to move current diff to left side and alt-right <a-right> to move current diff to right side.
For merging i can use :diffg and :diffp. But I need to know which split i am in so that i can use :diffg/:diffp in that.
Is there any way by which i can detect which split i am in. Specifically is there is any way by which i can know whether the cursor is in left split or right split
© Stack Overflow or respective owner