sponsor Vim development Vim logo Vim Book Ad

line_length.vim : Toggle hilighting of too long lines

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

created by
Anders Thøgersen
 
script type
utility
 
description
This script adds the :LineLength command that can be used to toggle
hilighting of the part of lines that are too long.

The code can also be found here: https://github.com/aklt/vim-line_length

Important: Please open an issue at github if you find a problem!

Add a mapping to toggle highlighting of long lines:

    nmap R :LineLength<CR>

The max. line length can be set in a modeline in a comment within
one of the 5 last lines of a file:

    // ...
    // Lines longer than 80 characters will get a blue background
    // ll: 80 blue

Customize defaults:

    let g:LineLength_LineLength = 80
    let g:LineLength_guibg = 'red'
    let g:LineLength_ctermbg = 1

 
install details
unzip, open with vim and source it.  Requires the Vimball plugin
 

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
line_length.vmb.zip 0.0.1 2012-12-11 7.0 Anders Thøgersen Initial upload
ip used for rating: 50.17.176.149

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.
   
SourceForge.net Logo