comparison runtime/ftplugin/vim.vim @ 29403:03e3b0034e31

Update runtime files Commit: https://github.com/vim/vim/commit/5ed11535e0695163cec71033b98bb97356cf0113 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jul 6 13:18:11 2022 +0100 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Wed, 06 Jul 2022 14:30:05 +0200
parents 9f41bfdbc6fc
children 2198955f9e27
comparison
equal deleted inserted replaced
29402:cc9945ae0971 29403:03e3b0034e31
14 let s:cpo_save = &cpo 14 let s:cpo_save = &cpo
15 set cpo&vim 15 set cpo&vim
16 16
17 if !exists('*VimFtpluginUndo') 17 if !exists('*VimFtpluginUndo')
18 func VimFtpluginUndo() 18 func VimFtpluginUndo()
19 setl fo< isk< com< tw< commentstring< 19 setl fo< isk< com< tw< commentstring< include< define<
20 if exists('b:did_add_maps') 20 if exists('b:did_add_maps')
21 silent! nunmap <buffer> [[ 21 silent! nunmap <buffer> [[
22 silent! vunmap <buffer> [[ 22 silent! vunmap <buffer> [[
23 silent! nunmap <buffer> ]] 23 silent! nunmap <buffer> ]]
24 silent! vunmap <buffer> ]] 24 silent! vunmap <buffer> ]]
57 setlocal com=sO:\"\ -,mO:\"\ \ ,eO:\"\",:\" 57 setlocal com=sO:\"\ -,mO:\"\ \ ,eO:\"\",:\"
58 " Comments starts with a double quote in legacy script 58 " Comments starts with a double quote in legacy script
59 setlocal commentstring=\"%s 59 setlocal commentstring=\"%s
60 endif 60 endif
61 61
62 " set 'include' to recognize import commands
63 setlocal include=\\v^\\s*import\\s*(autoload)?
64
65 " set 'define' to recognize export commands
66 setlocal define=\\v^\\s*export\\s*(def\|const\|var\|final)
62 67
63 " Format comments to be up to 78 characters long 68 " Format comments to be up to 78 characters long
64 if &tw == 0 69 if &tw == 0
65 setlocal tw=78 70 setlocal tw=78
66 endif 71 endif