line_length.vim : Toggle hilighting of too long lines
script karma |
Rating 4/7,
Downloaded by 915 |
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 |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.97.14.85
|