Mercurial > vim
view runtime/indent/rnoweb.vim @ 32433:151dbe17df6c v9.0.1548
patch 9.0.1548: CI: check in sound-dummy module may throw an error
Commit: https://github.com/vim/vim/commit/ff40b625a693cf5094abe76b77655f13ad48739b
Author: Christian Brabandt <cb@256bit.org>
Date: Sat May 13 11:54:47 2023 +0100
patch 9.0.1548: CI: check in sound-dummy module may throw an error
Problem: CI: check in sound-dummy module may throw an error.
Solution: Check whether apt-cache can show the package description.
(Christian Brabandt, closes #12390)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 13 May 2023 13:00:04 +0200 |
parents | b2e8663e6dcc |
children | 02bd0fe77c68 |
line wrap: on
line source
" Vim indent file " Language: Rnoweb " Author: Jakson Alves de Aquino <jalvesaq@gmail.com> " Homepage: https://github.com/jalvesaq/R-Vim-runtime " Last Change: Mon Feb 27, 2023 07:17PM " Only load this indent file when no other was loaded. if exists("b:did_indent") finish endif runtime indent/tex.vim function s:NoTeXIndent() return indent(line(".")) endfunction if &indentexpr == "" || &indentexpr == "GetRnowebIndent()" let s:TeXIndent = function("s:NoTeXIndent") else let s:TeXIndent = function(substitute(&indentexpr, "()", "", "")) endif unlet! b:did_indent runtime indent/r.vim let s:RIndent = function(substitute(&indentexpr, "()", "", "")) let b:did_indent = 1 setlocal indentkeys=0{,0},!^F,o,O,e,},=\bibitem,=\item setlocal indentexpr=GetRnowebIndent() let b:undo_indent = "setl inde< indk<" if exists("*GetRnowebIndent") finish endif function GetRnowebIndent() let curline = getline(".") if curline =~ '^<<.*>>=$' || curline =~ '^\s*@$' return 0 endif if search("^<<", "bncW") > search("^@", "bncW") return s:RIndent() endif return s:TeXIndent() endfunction " vim: sw=2