Mercurial > vim
view runtime/indent/xf86conf.vim @ 15351:be92862a0cb4 v8.1.0683
patch 8.1.0683: spell highlighting does not always end
commit https://github.com/vim/vim/commit/637532b3c0ca41f0de7e90b6f3c0defe06369372
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 3 21:44:40 2019 +0100
patch 8.1.0683: spell highlighting does not always end
Problem: Spell highlighting does not always end. (Gary Johnson)
Solution: Also reset char_attr when spell errors are highlighted.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 03 Jan 2019 21:45:05 +0100 |
parents | d0a20101ecb2 |
children | 4d76b3e07c07 |
line wrap: on
line source
" Vim indent file " Language: XFree86 Configuration File " Previous Maintainer: Nikolai Weibull <now@bitwi.se> " Latest Revision: 2006-12-20 if exists("b:did_indent") finish endif let b:did_indent = 1 setlocal indentexpr=GetXF86ConfIndent() setlocal indentkeys=!^F,o,O,=End setlocal nosmartindent if exists("*GetXF86ConfIndent") finish endif function GetXF86ConfIndent() let lnum = prevnonblank(v:lnum - 1) if lnum == 0 return 0 endif let ind = indent(lnum) if getline(lnum) =~? '^\s*\(Sub\)\=Section\>' let ind = ind + shiftwidth() endif if getline(v:lnum) =~? '^\s*End\(Sub\)\=Section\>' let ind = ind - shiftwidth() endif return ind endfunction