Skip to content

Simple and small plugin for easy resizing and fast navigation between windows.

License

Notifications You must be signed in to change notification settings

AnotherProksY/ez-window

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Easy Window License: MIT

Simple and small plugin for easy resizing and fast navigation between windows.

Window Navigation

Imgur

Resize Mode

Imgur

Open Terminal

Imgur

How to use

  1. Window Navigation:
  • Use <C-hjkl> to navigate between splits.
  • Will create a new window, if it didn't exist earlier or move to an existing one.
  1. Resize Mode:
  • <C-m> launches resize mode.
  • Use default <hjkl> keys to adjust the split size.
  • <q> to finish.
  1. Open Terminal:
  • <C-t> to open / close terminal.
  • Use default <C-\><C-n> mapping to return to normal mode inside terminal split.

Installation

  • Manual
    • Copy plugin/ez-window.vim to ~/.vim/plugin
  • Pathogen
    • git clone git://github.com/AnotherProksY/ez-window.git ~/.vim/bundle/vim-ez-window
  • Vundle
    • Plugin 'AnotherProksY/ez-window'
  • Vim-Plug
    • Plug 'AnotherProksY/ez-window'

Default Mappings

<C-h>  : New window or Move Left.
<C-j>  : New window or Move Down.
<C-k>  : New window or Move Up.
<C-l>  : New window or Move Right.
<C-m>  : Enters into Resize Mode.
<C-t>  : Open terminal split.

Customize Mappings

" Change default 'Window Resize' mode mapping:
let g:resize_start_key = '<C-r>'  " or any key you want

" Change 'Open Terminal' mapping:
let g:ez_terminal_key = '<C-o>'   " or any key you want