Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
eterm.vim40 linesDownload Raw Back to indent
1" Vim indent file2" Language:		Eterm configuration file3" Maintainer:		Doug Kearns <dougkearns@gmail.com>4" Previous Maintainer:	Nikolai Weibull <now@bitwi.se>5" Last Change:		24 Sep 20216 7if exists("b:did_indent")8  finish9endif10let b:did_indent = 111 12setlocal indentexpr=GetEtermIndent()13setlocal indentkeys=!^F,o,O,=end14setlocal nosmartindent15 16let b:undo_indent = "setl inde< indk< si<"17 18if exists("*GetEtermIndent")19  finish20endif21 22function GetEtermIndent()23  let lnum = prevnonblank(v:lnum - 1)24  if lnum == 025    return 026  endif27 28  let ind = indent(lnum)29 30  if getline(lnum) =~ '^\s*begin\>'31    let ind = ind + shiftwidth()32  endif33 34  if getline(v:lnum) =~ '^\s*end\>'35    let ind = ind - shiftwidth()36  endif37 38  return ind39endfunction40 
codekingpro/portable-devtools · Team Ai