Vim - Moving screen splits

Screen splits in Vim are a great feature, but until recently I had no idea how to move the screens around

To make

---------------
|      |      |
|  1   |  2   |
|      |      |
---------------

Like

---------------
|      |      |
|  2   |   1  |
|      |      |
---------------

Just type crtl+w r - this rotates the splits

Another way is crtl+w L - this moves the current split to the right, but using shift after control is harder

Justin Kelly

Justin Kelly

Web Developer, Business Analytics, Data Engineer specialising in PHP, ReactJS, Tableau, AWS RedShift and Matillion ETL

Based in Melbourne, Australia

Feel free to contact me justin@kelly.org.au or _justin_kelly

Leave a comment

Name Notify me of replies by email.