Skip to content

Aster89/WinZoZ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

                              _______    _______
            ___     _____    //     /   //     /
            \  | __ \  _/_ __\\_   / ___\\_   /
            |  |/  |/ (_) '_ \ // / / _ \ // /
            |    |    / | | | // /_\ (_) // /_
            |___/|___/|_|_| |//    \\___//    \
                            //_____/   //_____/

The plugin for easy window navigation.

Demo

WinZoZ demo

(This is the lovely animal in the background.)

Usage

Upon installing the plugin,

  • <leader>w will turn on the WinZoZ mode (a colored status bar will make it apparent):
    • every key pressed when this mode is active will be interpreted as if you pressed it after hitting Ctrl-W;
  • by hitting Escape you'll go back to normal mode.

Customization points

  • If you're not happy with <leader>w, you can define g:winzoz_trigger in your vimrc.
  • When the WinZoZ mode is active, the status bar is colored with the Search highlight group. You can change this by defining g:winzoz_style as you prefer.
  • When the WinZoZ mode is active, the status bar is populated with the full path of the current buffer. You can change this by defining the g:Winzoz_make_status_line_text function.
  • There's an option to disable the plugin, but why doing it?

Installation

However you like. I use vim-plug.

Motivation

Long story short, resizing and navigating windows has always been a pain for me and, with a large screen and many open windows, even pressing Ctrl-W several times has become a pain.

Since I did not find an existing plugin addressing this need, I started reading Learn Vimscript the Hard Way, which made me thing I could write a plugin myself, so I did it and had it reviewed on CodeReview, and here it is.

Why WinZoZ? Oh, well…