sponsor Vim development Vim logo Vim Book Ad

vim-linebox : The VIM lines and boxes plugin

 script karma  Rating 11/4, Downloaded by 273  Comments, bugs, improvements  Vim wiki

created by
 
script type
utility
 
description
For more info, visit https://github.com/yoshi1123/vim-linebox

Demo here: https://github.com/yoshi1123/vim-linebox/blob/master/doc/vim-linebox-demo.gif

linebox is a vim plugin to draw boxes and lines. Boxes are drawn by visually
selecting a rectangle, and then pressing either `<leader>b` or `<leader>B`
(with default mappings, enabled in vimrc). Lines are drawn by setting a start
and end mark, and pressing `<leader>L` (with default mappings, enabled in
vimrc). This will find the shortest path, from start to end (if there is a
path), no matter where the start and end positions are, avoiding any text.
Lines can start and stop on other lines, and will merge with them.


Features:

- Draw boxes with <leader>b
- Draw blended boxes with <leader>B
- Draw lines with <leader>L


Quick Start:

Add let g:linebox_default_maps = 1 to your vimrc (see "Default mappings" below).

Boxes:

Use visual mode to select a rectable, and make a box with <leader>b.

Use visual mode to select a rectable, and make a box with <leader>B to blend with other lines.

Lines:

Make a start and end mark with marks `a and `b. Then draw a line with <leader>L.

NOTE: There must be a path of whitespace from mark a to mark b.
 
install details
NOTE: On Windows, replace the directory ~/.vim with ~/vimfiles

Github:

    Vim Packages
        Linux/Unix/OSX:
            git clone --recursive https://github.com/yoshi1123/vim-linebox ~/.vim/pack/bundle/start/vim-linebox
            Run :helptags ~/.vim/pack/bundle/start/vim-linebox/doc
        Windows:
            git clone --recursive https://github.com/yoshi1123/vim-linebox ~/vimfiles/pack/bundle/start/vim-linebox
            Run :helptags ~/vimfiles/pack/bundle/start/vim-linebox/doc
    Pathogen
        Linux/Unix/OSX:
            git clone --recursive https://github.com/yoshi1123/vim-linebox ~/.vim/bundle/vim-linebox
        Windows:
            git clone --recursive https://github.com/yoshi1123/vim-linebox ~/.vim/bundle/vim-linebox
    Vundle
        Add Bundle 'https://github.com/yoshi1123/vim-linebox' to .vimrc
        Run :BundleInstall
    NeoBundle
        Add NeoBundle 'https://github.com/yoshi1123/vim-linebox' to .vimrc
        Run :NeoBundleInstall
    vim-plug
        Add Plug 'https://github.com/yoshi1123/vim-linebox' to .vimrc
        Run :PlugInstall


ZIP:

  Unzip to ~/.vim/pack/bundle/start/vim-linebox    
  Run :helptags ~/.vim/pack/bundle/start/vim-linebox/doc
 

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
vim-linebox-1.0c2.zip 1.0c2 2022-04-12 7.0 Workaround for mark bug in Vim
vim-linebox-master.zip 1.0c1 2022-04-11 7.0 Initial upload
ip used for rating: 44.222.113.28

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