aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin/vim.vim
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-05-01 23:05:15 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-05-01 23:19:58 -0400
commitac83c6eba65e92d434f3245f518f869c94751e6b (patch)
tree7c5625df2e83bde29193d2ff414813aa26f7d832 /runtime/ftplugin/vim.vim
parent8f8602d2dfc87257c1d72492aa1d285f335bb942 (diff)
downloadrneovim-ac83c6eba65e92d434f3245f518f869c94751e6b.tar.gz
rneovim-ac83c6eba65e92d434f3245f518f869c94751e6b.tar.bz2
rneovim-ac83c6eba65e92d434f3245f518f869c94751e6b.zip
vim-patch:e0e391755432
Update runtime files. https://github.com/vim/vim/commit/e0e3917554327f2524066f89fbbef9c83c1535da
Diffstat (limited to 'runtime/ftplugin/vim.vim')
-rw-r--r--runtime/ftplugin/vim.vim9
1 files changed, 7 insertions, 2 deletions
diff --git a/runtime/ftplugin/vim.vim b/runtime/ftplugin/vim.vim
index d31fff9acb..5593fefa8a 100644
--- a/runtime/ftplugin/vim.vim
+++ b/runtime/ftplugin/vim.vim
@@ -1,7 +1,7 @@
" Vim filetype plugin
" Language: Vim
" Maintainer: Bram Moolenaar <Bram@vim.org>
-" Last Change: 2021 Jan 12
+" Last Change: 2021 Jan 23
" Only do this when not done yet for this buffer
if exists("b:did_ftplugin")
@@ -92,8 +92,13 @@ endif
" Let the matchit plugin know what items can be matched.
if exists("loaded_matchit")
let b:match_ignorecase = 0
+ " "func" can also be used as a type:
+ " var Ref: func
+ " or to list functions:
+ " func name
+ " require a parenthesis following, then there can be an "endfunc".
let b:match_words =
- \ '\<\%(fu\%[nction]\|def\)\>)\@!:\<retu\%[rn]\>:\<\%(endf\%[unction]\|enddef\)\>,' .
+ \ '\<\%(fu\%[nction]\|def\)\s\+\S\+(:\<retu\%[rn]\>:\<\%(endf\%[unction]\|enddef\)\>,' .
\ '\<\(wh\%[ile]\|for\)\>:\<brea\%[k]\>:\<con\%[tinue]\>:\<end\(w\%[hile]\|fo\%[r]\)\>,' .
\ '\<if\>:\<el\%[seif]\>:\<en\%[dif]\>,' .
\ '{:},' .