sponsor Vim development Vim logo Vim Book Ad

leftmargin.vim : Vim plugin that adds left margin to vim windows. Similar to goyo.vim

 script karma  Rating 2/2, Downloaded by 308  Comments, bugs, improvements  Vim wiki

created by
João Garcia
 
script type
utility
 
description
I wrote this script because I don't like the way the goyo.vim plugin handles windows and statusline. Also because I like to keep things minimal. Check https://github.com/jpaulogg/vim-leftmargin for more info.

This plugin was written in an attempt to be simple enough that users could make any changes directly to it. I believe that this gives users more control and a wider range of possible changes. In addition, the script has comments that help to make some customizations (for example, hide the statusline). It's almost as simple as doing it on your `vimrc`.

Commands: 'LeftMargin' adds left margin to current window; 'NoMargin' removes it.
Mapping: <leader>p toggles left margin.
 
install details
Just copy leftmargin.vim to the "plugin" directory in your runtime.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
leftmargin.vim v2 2021-02-07 7.0 João Garcia Better "width" function
leftmargin.vim v1 2021-01-25 7.0 João Garcia Initial upload
ip used for rating: 3.133.119.66

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github