Mercurial > vim
view runtime/indent/readline.vim @ 11146:6ce90f33373f v8.0.0460
patch 8.0.0460: can't build on HPUX
commit https://github.com/vim/vim/commit/d8492792f26c5bbdefc8f452a393621f055edd8c
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 16 12:22:38 2017 +0100
patch 8.0.0460: can't build on HPUX
Problem: Can't build on HPUX.
Solution: Fix argument names in vim_stat(). (John Marriott)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 16 Mar 2017 12:30:04 +0100 |
parents | 1218c5353e2b |
children | d0a20101ecb2 |
line wrap: on
line source
" Vim indent file " Language: readline 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=GetReadlineIndent() setlocal indentkeys=!^F,o,O,=$else,=$endif setlocal nosmartindent if exists("*GetReadlineIndent") finish endif function GetReadlineIndent() let lnum = prevnonblank(v:lnum - 1) if lnum == 0 return 0 endif let ind = indent(lnum) if getline(lnum) =~ '^\s*$\(if\|else\)\>' let ind = ind + &sw endif if getline(v:lnum) =~ '^\s*$\(else\|endif\)\>' let ind = ind - &sw endif return ind endfunction