Skip to content

Commit c751336

Browse files
committed
vim-patch:b5b7562475ad
Update runtime files. vim/vim@b5b7562 --- NA patch (Nvim does not ship with spell files): vim-patch:3ad8772ef02e Include Serbian spell input files vim/vim@3ad8772
1 parent fb8f822 commit c751336

File tree

8 files changed

+60
-251
lines changed

8 files changed

+60
-251
lines changed

runtime/doc/autocmd.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,10 @@ Name triggered by ~
318318
|CmdwinEnter| after entering the command-line window
319319
|CmdwinLeave| before leaving the command-line window
320320

321+
|CmdlineChanged| after a change was made to the command-line text
322+
|CmdlineEnter| after the cursor moves to the command line
323+
|CmdlineLeave| before the cursor leaves the command line
324+
321325
|InsertEnter| starting Insert mode
322326
|InsertChange| when typing <Insert> while in Insert or Replace mode
323327
|InsertLeave| when leaving Insert mode
@@ -513,6 +517,10 @@ CmdUndefined When a user command is used but it isn't
513517
command is defined. An alternative is to
514518
always define the user command and have it
515519
invoke an autoloaded function. See |autoload|.
520+
*CmdlineChanged*
521+
CmdlineChanged After a change was made to the text in the
522+
command line. Be careful not to mess up
523+
the command line, it may cause Vim to lock up.
516524
*CmdlineEnter*
517525
CmdlineEnter After moving the cursor to the command line,
518526
where the user can type a command or search
@@ -936,6 +944,7 @@ SwapExists Detected an existing swap file when starting
936944
It is not allowed to change to another buffer,
937945
change a buffer name or change directory
938946
here.
947+
{only available with the +eval feature}
939948
*Syntax*
940949
Syntax When the 'syntax' option has been set. The
941950
pattern is matched against the syntax name.

runtime/doc/gui.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ and only the first one that is found is read.
7171
:winp[os]
7272
Display current position of the top left corner of the GUI vim
7373
window in pixels. Does not work in all versions.
74-
Also see |getwinposx()| and |getwinposy()|.
74+
Also see |getwinpos()|, |getwinposx()| and |getwinposy()|.
7575

7676
:winp[os] {X} {Y} *E466*
7777
Put the GUI vim window at the given {X} and {Y} coordinates.

runtime/doc/options.txt

Lines changed: 8 additions & 223 deletions
Large diffs are not rendered by default.

runtime/doc/usr_41.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -882,8 +882,9 @@ Interactive: *interactive-functions*
882882

883883
GUI: *gui-functions*
884884
getfontname() get name of current font being used
885-
getwinposx() X position of the GUI Vim window
886-
getwinposy() Y position of the GUI Vim window
885+
getwinpos() position of the Vim window
886+
getwinposx() X position of the Vim window
887+
getwinposy() Y position of the Vim window
887888
balloon_show() set the balloon content
888889
balloon_split() split a message for a balloon
889890

runtime/ftplugin/chicken.vim

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
" CHICKEN-specific Vim customizations
2-
" Last Change: 2018-01-06
2+
" Last Change: 2018-03-05
33
" Author: Evan Hanson <evhan@foldling.org>
44
" Maintainer: Evan Hanson <evhan@foldling.org>
55
" URL: https://foldling.org/vim/ftplugin/chicken.vim
@@ -14,34 +14,37 @@ endif
1414
setl keywordprg=chicken-doc
1515

1616
setl lispwords+=and-let*
17-
setl lispwords+=begin-for-syntax
1817
setl lispwords+=compiler-typecase
1918
setl lispwords+=condition-case
2019
setl lispwords+=define-compiler-syntax
2120
setl lispwords+=define-constant
2221
setl lispwords+=define-external
2322
setl lispwords+=define-for-syntax
23+
setl lispwords+=define-foreign-type
2424
setl lispwords+=define-inline
25+
setl lispwords+=define-location
2526
setl lispwords+=define-record
2627
setl lispwords+=define-record-printer
2728
setl lispwords+=define-specialization
28-
setl lispwords+=define-syntax-rule
29-
setl lispwords+=eval-when
3029
setl lispwords+=fluid-let
30+
setl lispwords+=foreign-lambda*
31+
setl lispwords+=foreign-primitive
32+
setl lispwords+=foreign-safe-lambda*
33+
setl lispwords+=functor
3134
setl lispwords+=handle-exceptions
3235
setl lispwords+=let-compiler-syntax
36+
setl lispwords+=let-location
3337
setl lispwords+=let-optionals
3438
setl lispwords+=let-optionals*
3539
setl lispwords+=letrec-values
3640
setl lispwords+=match
37-
setl lispwords+=match-lambda
38-
setl lispwords+=match-lambda*
3941
setl lispwords+=match-let
4042
setl lispwords+=match-let*
43+
setl lispwords+=match-letrec
4144
setl lispwords+=module
4245
setl lispwords+=receive
43-
setl lispwords+=select
4446
setl lispwords+=set!-values
47+
setl lispwords+=test-group
4548

4649
let b:undo_ftplugin = b:undo_ftplugin . ' keywordprg<'
4750

runtime/ftplugin/scheme.vim

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
" Vim filetype plugin file
22
" Language: Scheme (R7RS)
3-
" Last Change: 2018-01-20
3+
" Last Change: 2018-03-05
44
" Author: Evan Hanson <evhan@foldling.org>
55
" Maintainer: Evan Hanson <evhan@foldling.org>
66
" Previous Maintainer: Sergey Khorev <sergey.khorev@gmail.com>
@@ -14,25 +14,20 @@ let s:cpo = &cpo
1414
set cpo&vim
1515

1616
setl lisp
17-
setl comments=:;;;;,:;;;,:;;,:;,sr:#\|,ex:\|#
17+
setl comments=:;;;;,:;;;,:;;,:;,sr:#\|,mb:\|,ex:\|#
1818
setl commentstring=;%s
1919
setl define=^\\s*(def\\k*
2020
setl iskeyword=33,35-39,42-43,45-58,60-90,94,95,97-122,126
2121

2222
let b:undo_ftplugin = 'setl lisp< comments< commentstring< define< iskeyword<'
2323

24-
setl lispwords=begin
25-
setl lispwords+=case
26-
setl lispwords+=case-lambda
27-
setl lispwords+=cond
28-
setl lispwords+=cond-expand
24+
setl lispwords=case
2925
setl lispwords+=define
3026
setl lispwords+=define-record-type
3127
setl lispwords+=define-syntax
3228
setl lispwords+=define-values
3329
setl lispwords+=do
3430
setl lispwords+=guard
35-
setl lispwords+=import
3631
setl lispwords+=lambda
3732
setl lispwords+=let
3833
setl lispwords+=let*

runtime/indent/html.vim

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
" Header: "{{{
33
" Maintainer: Bram Moolenaar
44
" Original Author: Andy Wokula <anwoku@yahoo.de>
5-
" Last Change: 2017 Jun 13
5+
" Last Change: 2018 Mar 09
66
" Version: 1.0
77
" Description: HTML indent script with cached state for faster indenting on a
88
" range of lines.
@@ -56,6 +56,9 @@ let s:cpo_save = &cpo
5656
set cpo-=C
5757
"}}}
5858

59+
" Pattern to match the name of a tag, including custom elements.
60+
let s:tagname = '\w\+\(-\w\+\)*'
61+
5962
" Check and process settings from b:html_indent and g:html_indent... variables.
6063
" Prefer using buffer-local settings over global settings, so that there can
6164
" be defaults for all HTML files and exceptions for specific types of HTML
@@ -280,7 +283,7 @@ func! s:CountITags(text)
280283
let s:nextrel = 0 " relative indent steps for next line [unit &sw]:
281284
let s:block = 0 " assume starting outside of a block
282285
let s:countonly = 1 " don't change state
283-
call substitute(a:text, '<\zs/\=\w\+\(-\w\+\)*\>\|<!--\[\|\[endif\]-->\|<!--\|-->', '\=s:CheckTag(submatch(0))', 'g')
286+
call substitute(a:text, '<\zs/\=' . s:tagname . '\>\|<!--\[\|\[endif\]-->\|<!--\|-->', '\=s:CheckTag(submatch(0))', 'g')
284287
let s:countonly = 0
285288
endfunc "}}}
286289

@@ -292,7 +295,7 @@ func! s:CountTagsAndState(text)
292295
let s:nextrel = 0 " relative indent steps for next line [unit &sw]:
293296

294297
let s:block = b:hi_newstate.block
295-
let tmp = substitute(a:text, '<\zs/\=\w\+\(-\w\+\)*\>\|<!--\[\|\[endif\]-->\|<!--\|-->', '\=s:CheckTag(submatch(0))', 'g')
298+
let tmp = substitute(a:text, '<\zs/\=' . s:tagname . '\>\|<!--\[\|\[endif\]-->\|<!--\|-->', '\=s:CheckTag(submatch(0))', 'g')
296299
if s:block == 3
297300
let b:hi_newstate.scripttype = s:GetScriptType(matchstr(tmp, '\C.*<SCRIPT\>\zs[^>]*'))
298301
endif
@@ -530,7 +533,7 @@ func! s:FreshState(lnum)
530533
let swendtag = match(text, '^\s*</') >= 0
531534

532535
" If previous line ended in a closing tag, line up with the opening tag.
533-
if !swendtag && text =~ '</\w\+\s*>\s*$'
536+
if !swendtag && text =~ '</' . s:tagname . '\s*>\s*$'
534537
call cursor(state.lnum, 99999)
535538
normal! F<
536539
let start_lnum = HtmlIndent_FindStartTag()
@@ -860,7 +863,7 @@ func! HtmlIndent_FindStartTag()
860863
" The cursor must be on or before a closing tag.
861864
" If found, positions the cursor at the match and returns the line number.
862865
" Otherwise returns 0.
863-
let tagname = matchstr(getline('.')[col('.') - 1:], '</\zs\w\+\ze')
866+
let tagname = matchstr(getline('.')[col('.') - 1:], '</\zs' . s:tagname . '\ze')
864867
let start_lnum = searchpair('<' . tagname . '\>', '', '</' . tagname . '\>', 'bW')
865868
if start_lnum > 0
866869
return start_lnum
@@ -876,7 +879,7 @@ func! HtmlIndent_FindTagEnd()
876879
" a self-closing tag, to the matching ">".
877880
" Limited to look up to b:html_indent_line_limit lines away.
878881
let text = getline('.')
879-
let tagname = matchstr(text, '\w\+\|!--', col('.'))
882+
let tagname = matchstr(text, s:tagname . '\|!--', col('.'))
880883
if tagname == '!--'
881884
call search('--\zs>')
882885
elseif s:get_tag('/' . tagname) != 0
@@ -921,9 +924,22 @@ func! s:InsideTag(foundHtmlString)
921924
else
922925
let idx = match(text, '\s\zs[_a-zA-Z0-9-]\+="')
923926
endif
927+
if idx == -1
928+
" try <tag attr
929+
let idx = match(text, '<' . s:tagname . '\s\+\zs\w')
930+
endif
931+
if idx == -1
932+
" after just <tag indent one level more
933+
let idx = match(text, '<' . s:tagname . '$')
934+
if idx >= 0
935+
call cursor(lnum, idx)
936+
return virtcol('.') + shiftwidth()
937+
endif
938+
endif
924939
if idx > 0
925-
" Found the attribute. TODO: assumes spaces, no Tabs.
926-
return idx
940+
" Found the attribute to align with.
941+
call cursor(lnum, idx)
942+
return virtcol('.')
927943
endif
928944
endwhile
929945
return -1

runtime/syntax/chicken.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
" Vim syntax file
22
" Language: Scheme (CHICKEN)
3-
" Last Change: 2018 Jan 31
3+
" Last Change: 2018-02-05
44
" Author: Evan Hanson <evhan@foldling.org>
55
" Maintainer: Evan Hanson <evhan@foldling.org>
66
" URL: https://foldling.org/vim/syntax/chicken.vim
@@ -14,7 +14,7 @@ if !exists('b:did_scheme_syntax')
1414
endif
1515

1616
" Lighten parentheses.
17-
hi def link schemeParentheses Comment
17+
hi! def link schemeParentheses Comment
1818

1919
" foo#bar
2020
syn match schemeExtraSyntax /[^ #'`\t\n()\[\]"|;]\+#[^ '`\t\n()\[\]"|;]\+/

0 commit comments

Comments
 (0)