annotate runtime/ftplugin/sed.vim @ 33484:66c2576530b3 v9.0.1993

patch 9.0.1993: warning about unused function definition Commit: https://github.com/vim/vim/commit/9960ebcacee5f430d61735991a0563858168ef2c Author: Christian Brabandt <cb@256bit.org> Date: Thu Oct 5 22:17:09 2023 +0200 patch 9.0.1993: warning about unused function definition Problem: warning about unused function definition Solution: add ifdefs Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Thu, 05 Oct 2023 22:30:04 +0200
parents 19cba3b0df5f
children 8ae680be2a51
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
32862
19cba3b0df5f Runtime: add new sed ftplugin (#12843)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
1 " Vim filetype plugin file
19cba3b0df5f Runtime: add new sed ftplugin (#12843)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
2 " Language: sed
19cba3b0df5f Runtime: add new sed ftplugin (#12843)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
3 " Maintainer: Doug Kearns <dougkearns@gmail.com>
19cba3b0df5f Runtime: add new sed ftplugin (#12843)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
4 " Last Change: 2020 Apr 1
19cba3b0df5f Runtime: add new sed ftplugin (#12843)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
5
19cba3b0df5f Runtime: add new sed ftplugin (#12843)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
6 if exists("b:did_ftplugin")
19cba3b0df5f Runtime: add new sed ftplugin (#12843)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
7 finish
19cba3b0df5f Runtime: add new sed ftplugin (#12843)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
8 endif
19cba3b0df5f Runtime: add new sed ftplugin (#12843)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
9 let b:did_ftplugin = 1
19cba3b0df5f Runtime: add new sed ftplugin (#12843)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
10
19cba3b0df5f Runtime: add new sed ftplugin (#12843)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
11 let s:cpo_save = &cpo
19cba3b0df5f Runtime: add new sed ftplugin (#12843)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
12 set cpo&vim
19cba3b0df5f Runtime: add new sed ftplugin (#12843)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
13
19cba3b0df5f Runtime: add new sed ftplugin (#12843)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
14 setlocal comments=:#
19cba3b0df5f Runtime: add new sed ftplugin (#12843)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
15 setlocal commentstring=#\ %s
19cba3b0df5f Runtime: add new sed ftplugin (#12843)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
16 setlocal formatoptions-=t formatoptions+=croql
19cba3b0df5f Runtime: add new sed ftplugin (#12843)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
17
19cba3b0df5f Runtime: add new sed ftplugin (#12843)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
18 let b:undo_ftplugin = "setl com< cms< fo<"
19cba3b0df5f Runtime: add new sed ftplugin (#12843)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
19
19cba3b0df5f Runtime: add new sed ftplugin (#12843)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
20 if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
19cba3b0df5f Runtime: add new sed ftplugin (#12843)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
21 let b:browsefilter = "sed Script Files (*.sed)\t*.sed\n" ..
19cba3b0df5f Runtime: add new sed ftplugin (#12843)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
22 \ "All Files (*.*)\t*.*\n"
19cba3b0df5f Runtime: add new sed ftplugin (#12843)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
23 let b:undo_ftplugin ..= " | unlet! b:browsefilter"
19cba3b0df5f Runtime: add new sed ftplugin (#12843)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
24 endif
19cba3b0df5f Runtime: add new sed ftplugin (#12843)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
25
19cba3b0df5f Runtime: add new sed ftplugin (#12843)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
26 let &cpo = s:cpo_save
19cba3b0df5f Runtime: add new sed ftplugin (#12843)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
27 unlet s:cpo_save
19cba3b0df5f Runtime: add new sed ftplugin (#12843)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
28
19cba3b0df5f Runtime: add new sed ftplugin (#12843)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
29 " vim: nowrap sw=2 sts=2 ts=8