Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
xf86conf.vim41 linesDownload Raw Back to indent
1" Vim indent file2" Language:		XFree86 Configuration File3" Maintainer:		Doug Kearns <dougkearns@gmail.com>4" Previous Maintainer:	Nikolai Weibull <now@bitwi.se>5" Last Change:		2022 April 256 7if exists("b:did_indent")8  finish9endif10let b:did_indent = 111 12setlocal indentexpr=GetXF86ConfIndent()13setlocal indentkeys=!^F,o,O,=End14setlocal nosmartindent15 16let b:undo_indent = "setl inde< indk< si<"17 18if exists("*GetXF86ConfIndent")19  finish20endif21 22function GetXF86ConfIndent()23  let lnum = prevnonblank(v:lnum - 1)24 25  if lnum == 026    return 027  endif28 29  let ind = indent(lnum)30 31  if getline(lnum) =~? '^\s*\(Sub\)\=Section\>'32    let ind = ind + shiftwidth()33  endif34 35  if getline(v:lnum) =~? '^\s*End\(Sub\)\=Section\>'36    let ind = ind - shiftwidth()37  endif38 39  return ind40endfunction41 
codekingpro/portable-devtools · Team Ai