• Stars
    star
    236
  • Rank 169,956 (Top 4 %)
  • Language
    Vim Script
  • Created almost 8 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Toggle zoom in / out individual windows (splits)

VIM Zoom v0.3.4

A simple plugin to toggle zoom of current window within the current tab.

This is heavily inspired from tmux's zoom pane feature.

Installation

Use your favorite plugin manager to install this plugin (recommended).

pathogen.vim

git clone https://github.com/dhruvasagar/vim-zoom.git ~/.vim/bundle/vim-zoom

If however you don't use a plugin manager such as pathogen, vundle, neobundle, vim-plug then you can copy all files within this repository directly within your ~/.vim folder. (not recommended)

Usage

Simply use the provided mapping <C-W>m to toggle zoom in and out for the current window

NOTE: In an attempt to keep this plugin as lean as possible, it avoids having to deal with special buffers created by plugins that aren't backed by actual files. This is a trade-off we've made consiously and helps us keep our plugin less than 100 lines of code.

If that doesn't work for you and for other more advanced use cases you may want to consider alternate plugins such as goyo.vim

Statusline

VIM Zoom provides zoom#statusline() API to be used for adding g:zoom#statustext value to your statusline while your window is zoomed. g:zoom#statustext defaults to value 'zoomed'. You may add this to your statusline like this :

set statusline+=%{zoom#statusline()}

If you're using some complex statusline plugin, you may need to refer to its documentation to figure out how to add this to your statusline.

Example configuration for lualine.nvim

-- Set lualine options
sections = {
-- left
lualine_a = { 'mode' },
lualine_b = { 'branch', 'diff', 'diagnostic' },
lualine_c = { 'filename' },
-- right
lualine_x = { "vim.fn['zoom#statusline']()", 'encoding', 'fileformat', 'filetype' },
lualine_y = { 'progress' },
lualine_z = { 'location' }
})

Contributions of configurations for other statusline plugins are appreciated.

Contributing

Contributing to code :

  • Fork it.
  • Commit your changes and give your commit message some love.
  • Push to your fork on github.
  • Open a Pull Request.

Reporting an Issue :

Use Github Issue Tracker

Credits

This plugin was heavily inspired by tmux's zoom pane feature.

More Repositories

1

vim-table-mode

VIM Table Mode for instant table creation.
Vim Script
2,071
star
2

vim-dotoo

Org-mode like task logging & time tracking in Vim
Vim Script
553
star
3

vim-prosession

Handle vim sessions like a pro
Vim Script
251
star
4

vim-open-url

A simple plugin for opening urls in browser
Vim Script
59
star
5

dotfiles

The single dot that has it all.
Emacs Lisp
57
star
6

vim-marp

Presentations from within VIM
Vim Script
28
star
7

vim-markify

VIM Plugin Markify to indicate quickfix results on buffers using Signs
Vim Script
24
star
8

url-mapper-rs

A simple URL Mapper service built using Rust
Rust
20
star
9

vim-buffer-history

A vim plugin to maintain a buffer jump history per window
Vim Script
19
star
10

vim-testify

Simplified viml testing
Vim Script
16
star
11

vim-pairify

A simplistic vim plugin to deal with pairs non-intrusively
Vim Script
14
star
12

soulmate_rails

Redis backed Rails Plugin for auto-completion
Ruby
13
star
13

comp

Go
6
star
14

packup

Minimal VIM plugin for automated package management
Vim Script
6
star
15

react-native-image-draw

TypeScript
5
star
16

cursed-timer

A Console Rubik Cube's Timer using tui-rs
Rust
4
star
17

rpicctv

RPi CCTV camera with Pan & Tilt controllable remotely via JSON API
Go
4
star
18

vim-github-review

Vim Script
3
star
19

convert_office_gem

Gem for converting documents from one format to another using the open office
Ruby
3
star
20

vim-audiobox

Control Rhythmbox from VIM
Vim Script
3
star
21

Ninjawords-Lookup

Ninjawords Lookup is an Extension for Google Chrome for performing quick and easy dictionary lookups from http://ninjawords.com/
JavaScript
3
star
22

webrtc-broadcast

Elixir
2
star
23

docker-attach

Examples demonstrating how to use docker attach
Makefile
2
star
24

httpcron

Cron with an HTTP API
Go
2
star
25

dumbhttp

Rust
2
star
26

vim-highlight-word

VIM Plugin for highlighting word under cursor
Vim Script
1
star
27

vim-comp

Vim Script
1
star
28

url-mapper

A simple keyword based url mapper
Go
1
star
29

hash-calculator

It calculates MD2, MD5, SHA-1, SHA-256, SHA-384, SHA-512 hash of input text or selected file.
Java
1
star