Skip to content

mitnk/thwins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

Thwins - Keep Vim Displaying Three Windows

Windows are always organised as follows:

===================================
|              |        S1        |
|     Main     |===================
|              |        S2        |
===================================

Priority Rules for Buffers

Current > Main > Displayed > New opened > Others

Install

mkdir -p ~/.vim/plugin/ && \
curl -o ~/.vim/plugin/thwins.vim \
https://raw.github.com/mitnk/thwins/master/thwins.vim

Key Mapping

  • <C-H> Make the current buffer as the main window
  • <C-L> Make current buffer displayed as full screen
  • <C-C> Delete current buffer
  • <C-D> Close all buffers except the current one
  • <C-J> Move cursor to next buffer
  • <C-K> Move cursor to previous buffer
  • <C-M> Set max window number between 3 and 2

Inspired By

dwm.vim by Stanislas Polu

About

Keep Vim Displaying Three Windows

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published