61

GitHub - auxiliary/vim-layout: Run Vim with automatic layouts

 6 years ago
source link: https://github.com/auxiliary/vim-layout
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

vim-layout

Opens multiple files in Vim with automatic layouts.

Installation with Vundle/Pathogen

Add Plugin "auxiliary/vim-layout" to your plugin list

Modes

  • simple two-file mode: vim <file1> <file2>
+----------------+----------------+  
|                |                |  
|                |                |
|                |                |
|     File 1     |     File 2     |
|                |                |
|                |                |
|                |                |
+----------------+----------------+
  • simple three-file mode: vim <file1> <file2> <file3>
+----------------+----------------+
|                |                |
|                |     File 3     |
|                |                |
|     File 1     +----------------+
|                |                |
|                |     File 2     |
|                |                |
+----------------+----------------+
  • simple four-file mode vim <file1> <file2> <file3> <file4>
+----------------+----------------+
|                |                |
|     File 3     |     File 4     |
|                |                |
+---------------------------------+
|                |                |
|     File 1     |     File 2     |
|                |                |
+----------------+----------------+
  • tabbed mode: vim <more than four files>

In this mode, every four files are splitted in separate tabs.

+----+----+                        
+----+----+------+----------------+
|                |                |
|                |                |
|                |                |
|                |                |
|                |                |
+----------------+----------------+

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK