annotate runtime/ftplugin/php.vim @ 34134:8ae680be2a51

runtime(ftplugin): Use "*" browsefilter pattern to match "All Files" Commit: https://github.com/vim/vim/commit/93197fde0f1db09b1e495cf3eb14a8f42c318b80 Author: Doug Kearns <dougkearns@gmail.com> Date: Sun Jan 14 20:59:02 2024 +0100 runtime(ftplugin): Use "*" browsefilter pattern to match "All Files" Problem: The "*.*" browsefilter pattern only matches all files on Windows (Daryl Lee) Solution: Use "*" to filter on all platforms but keep "*.*" as the label text on Windows. (Fixes #12685, Doug Kearns) The *.* browsefilter pattern used to match "All Files" on Windows is a legacy of the DOS 8.3 filename wildcard matching algorithm. For reasons of backward compatibility this still works on Windows to match all files, even those without an extension. However, this pattern only matches filenames containing a dot on other platforms. This often makes files without an extension difficult to access from the file dialog, e.g., "Makefile" On Windows it is still standard practice to use "*.*" for the filter label so ftplugins should use "All Files (*.*)" on Windows and "All Files (*)" on other platforms. This matches Vim's default browsefilter values. This commit also normalises the browsefilter conditional test to check for the Win32 and GTK GUI features and an unset b:browsefilter. closes: #12759 Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sun, 14 Jan 2024 21:15:03 +0100
parents 2198955f9e27
children 7c7432a53a6c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim filetype plugin file
29659
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
2 " Language: PHP
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
3 " Maintainer: Doug Kearns <dougkearns@gmail.com>
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
4 " Previous Maintainer: Dan Sharp
34134
8ae680be2a51 runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents: 29659
diff changeset
5 " Last Change: 2024 Jan 14
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
29659
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
7 if exists("b:did_ftplugin")
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
8 finish
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
9 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " Make sure the continuation lines below do not cause problems in
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " compatibility mode.
3496
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
13 let s:keepcpo= &cpo
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
14 set cpo&vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " Define some defaults in case the included ftplugins don't set them.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 let s:undo_ftplugin = ""
34134
8ae680be2a51 runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents: 29659
diff changeset
18 let s:browsefilter = "HTML Files (*.html, *.htm)\t*.html;*.htm\n"
8ae680be2a51 runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents: 29659
diff changeset
19 if has("win32")
8ae680be2a51 runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents: 29659
diff changeset
20 let s:browsefilter ..= "All Files (*.*)\t*\n"
8ae680be2a51 runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents: 29659
diff changeset
21 else
8ae680be2a51 runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents: 29659
diff changeset
22 let s:browsefilter ..= "All Files (*)\t*\n"
8ae680be2a51 runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents: 29659
diff changeset
23 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 let s:match_words = ""
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 runtime! ftplugin/html.vim ftplugin/html_*.vim ftplugin/html/*.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 let b:did_ftplugin = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 " Override our defaults if these were set by an included ftplugin.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 if exists("b:undo_ftplugin")
29659
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
31 " let b:undo_ftplugin = "setlocal comments< commentstring< formatoptions< omnifunc<"
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
32 let s:undo_ftplugin = b:undo_ftplugin
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 if exists("b:browsefilter")
29659
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
35 " let b:undo_ftplugin ..= " | unlet! b:browsefilter b:html_set_browsefilter"
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
36 let s:browsefilter = b:browsefilter
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 if exists("b:match_words")
29659
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
39 " let b:undo_ftplugin ..= " | unlet! b:match_ignorecase b:match_words b:html_set_match_words"
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
40 let s:match_words = b:match_words
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 endif
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 714
diff changeset
42 if exists("b:match_skip")
29659
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
43 unlet b:match_skip
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 714
diff changeset
44 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
29659
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
46 setlocal comments=s1:/*,mb:*,ex:*/,://,:#
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
47 setlocal commentstring=/*%s*/
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
48 setlocal formatoptions+=l formatoptions-=t
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
49
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
50 if get(g:, "php_autocomment", 1)
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
51 setlocal formatoptions+=croq
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
52 " NOTE: set g:PHP_autoformatcomment = 0 to prevent the indent plugin from
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
53 " overriding this 'comments' value
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
54 setlocal comments-=:#
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
55 " space after # comments to exclude attributes
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
56 setlocal comments+=b:#
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
29659
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
59 if exists('&omnifunc')
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
60 setlocal omnifunc=phpcomplete#CompletePHP
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
61 endif
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
62
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
63 setlocal suffixesadd=.php
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
64
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 " ###
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 " Provided by Mikolaj Machowski <mikmach at wp dot pl>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 setlocal include=\\\(require\\\|include\\\)\\\(_once\\\)\\\?
1622
149d8b46404c updated for version 7.2a
vimboss
parents: 1125
diff changeset
68 " Disabled changing 'iskeyword', it breaks a command such as "*"
149d8b46404c updated for version 7.2a
vimboss
parents: 1125
diff changeset
69 " setlocal iskeyword+=$
149d8b46404c updated for version 7.2a
vimboss
parents: 1125
diff changeset
70
29659
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
71 let b:undo_ftplugin = "setlocal include< suffixesadd<"
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
72
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
73 if exists("loaded_matchit") && exists("b:html_set_match_words")
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
74 let b:match_ignorecase = 1
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
75 let b:match_words = 'PhpMatchWords()'
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
76
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
77 if !exists("*PhpMatchWords")
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
78 function! PhpMatchWords()
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
79 " The PHP syntax file uses the Delimiter syntax group for the phpRegion
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
80 " matchgroups, without a "php" prefix, so use the stack to test for the
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
81 " outer phpRegion group. This also means the closing ?> tag which is
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
82 " outside of the matched region just uses the Delimiter group for the
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
83 " end match.
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
84 let stack = synstack(line('.'), col('.'))
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
85 let php_region = !empty(stack) && synIDattr(stack[0], "name") =~# '\<php'
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
86 if php_region || getline(".") =~ '.\=\%.c\&?>'
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
87 let b:match_skip = "PhpMatchSkip('html')"
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
88 return '<?php\|<?=\=:?>,' ..
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
89 \ '\<if\>:\<elseif\>:\<else\>:\<endif\>,' ..
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
90 \ '\<switch\>:\<case\>:\<break\>:\<continue\>:\<endswitch\>,' ..
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
91 \ '\<while\>.\{-})\s*\::\<break\>:\<continue\>:\<endwhile\>,' ..
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
92 \ '\<do\>:\<break\>:\<continue\>:\<while\>,' ..
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
93 \ '\<for\>:\<break\>:\<continue\>:\<endfor\>,' ..
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
94 \ '\<foreach\>:\<break\>:\<continue\>:\<endforeach\>,' ..
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
95 \ '\%(<<<\s*\)\@<=''\=\(\h\w*\)''\=:^\s*\1\>'
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
96
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
97 " TODO: these probably aren't worth adding and really need syntax support
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
98 " '<\_s*script\_s*language\_s*=\_s*[''"]\=\_s*php\_s*[''"]\=\_s*>:<\_s*\_s*/\_s*script\_s*>,' ..
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
99 " '<%:%>,' ..
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
100 else
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
101 let b:match_skip = "PhpMatchSkip('php')"
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
102 return s:match_words
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
103 endif
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
104 endfunction
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
105 endif
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
106 if !exists("*PhpMatchSkip")
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
107 function! PhpMatchSkip(skip)
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
108 let name = synIDattr(synID(line('.'), col('.'), 1), 'name')
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
109 if a:skip == "html"
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
110 " ?> in line comments will also be correctly matched as Delimiter
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
111 return name =~? 'comment\|string' || name !~? 'php\|delimiter'
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
112 else " php
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
113 return name =~? 'comment\|string\|php'
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
114 endif
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
115 endfunction
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
116 endif
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
117 let b:undo_ftplugin ..= " | unlet! b:match_skip"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 " ###
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120
29659
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
121 " Change the :browse e filter to primarily show PHP-related files.
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
122 if (has("gui_win32") || has("gui_gtk")) && exists("b:html_set_browsefilter")
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
123 let b:browsefilter = "PHP Files (*.php)\t*.php\n" ..
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
124 \ "PHP Test Files (*.phpt)\t*.phpt\n" ..
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
125 \ s:browsefilter
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 507
diff changeset
126 endif
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 507
diff changeset
127
29659
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
128 if !exists("no_plugin_maps") && !exists("no_php_maps")
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
129 " Section jumping: [[ and ]] provided by Antony Scriven <adscriven at gmail dot com>
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
130 let s:function = '\%(abstract\s\+\|final\s\+\|private\s\+\|protected\s\+\|public\s\+\|static\s\+\)*function'
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
131 let s:class = '\%(abstract\s\+\|final\s\+\)*class'
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
132 let s:section = escape('^\s*\zs\%(' .. s:function .. '\|' .. s:class .. '\|interface\|trait\|enum\)\>', "|")
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 507
diff changeset
133
29659
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
134 function! s:Jump(pattern, count, flags)
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
135 normal! m'
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
136 for i in range(a:count)
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
137 if !search(a:pattern, a:flags)
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
138 break
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
139 endif
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
140 endfor
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
141 endfunction
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142
29659
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
143 for mode in ["n", "o", "x"]
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
144 exe mode .. "noremap <buffer> <silent> ]] <Cmd>call <SID>Jump('" .. s:section .. "', v:count1, 'W')<CR>"
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
145 exe mode .. "noremap <buffer> <silent> [[ <Cmd>call <SID>Jump('" .. s:section .. "', v:count1, 'bW')<CR>"
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
146 let b:undo_ftplugin ..= " | sil! exe '" .. mode .. "unmap <buffer> ]]'" ..
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
147 \ " | sil! exe '" .. mode .. "unmap <buffer> [['"
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
148 endfor
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
149 endif
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
150
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
151 let b:undo_ftplugin ..= " | " .. s:undo_ftplugin
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 " Restore the saved compatibility options.
3496
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
154 let &cpo = s:keepcpo
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
155 unlet s:keepcpo
29659
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
156
2198955f9e27 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28141
diff changeset
157 " vim: nowrap sw=2 sts=2 ts=8 noet: