Code Monkey home page Code Monkey logo

vim-venter's Introduction

vim-venter

vim-venter is a vim plugin that vertically horizontally centers the current window(s)

This is mainly useful when working with one file on a large monitor

Similar to goyo.vim but keeps the functionality (statusbar, tabline etc.)

Installation

vim-plug

Add Plug 'jmckiern/vim-venter' to .vimrc
Then run :PlugInstall in vim

Vundle.vim

Add Plugin 'jmckiern/vim-venter' to .vimrc
Then run :PluginInstall in vim

Pathogen

Run git clone https://github.com/jmckiern/vim-venter ~/.vim/bundle/vim-venter in a terminal

How to Use

Commands

:Venter - Open venter

:VenterClose - Close venter

:VenterToggle - Toggle venter

:VenterResize - Force a window resize (usually only happens on VimResized, TabEnter and WinEnter events)

Options

g:venter_disable_vertsplit - Set to v:true before calling :Venter to disable the vertical window separators

g:venter_width - Manually set width of padding windows (defaults to &columns/4)

g:venter_use_textwidth - If true, venter will resize the main window to it's textwidth. Note, this only works with 1 window open (excl. venter padding windows)

g:venter_close_tab_if_empty - Close the tab when the final window is closed if there are other tabs open (defaults to v:true)

vim-venter's People

Contributors

jmckiern avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

lacava zldrobit

vim-venter's Issues

E154: Duplicate tag "venter" in file

helptags seems to complain about the two "venter" lines in venter.txt when running `PluginInstall'. I'm using Vundle, vim 8.0 on ubuntu 18.04.

When running `:PluginInstall', I get:

[2021-11-03 10:02:13] > Error running :helptags /home/bill/.vim/bundle/vim-venter/doc

if I run ':helptags /home/bill/.vim/bundle/vim-venter/doc', I get:

E154: Duplicate tag "venter" in file /home/bill/.vim/bundle/vim-venter/doc/venter.txt

Changing *venter* to *Venter* on line 2 of venter.txt seems to fix the issue.

Feature Request: VenterToggle

Hi !

Thank you for Venter!
Would it be possible to add a toggle option, I'd like to bind Venter to a single mapping.

Thanks!

BG colour unknown

I get the following error when calling :Venter and :VenterToggle

Error detected while processing function venter#VenterToggle[4]..venter#Venter:
line   14:
E420: BG colour unknown

This happens only when I have disabled vertical split lines with let g:venter_disable_vertsplit = v:true.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.