.vim/after/syntax/sh/custom.vim

Wed, 15 Feb 2017 22:53:13 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 15 Feb 2017 22:53:13 -0500
changeset 519
42e8433b8a51
parent 363
394bcf0d5bac
permissions
-rw-r--r--

assume we have unicode on guis, bring back default geometry

363
394bcf0d5bac add POD highlighting for shell
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
1
394bcf0d5bac add POD highlighting for shell
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
2 let s:current_syntax = b:current_syntax
394bcf0d5bac add POD highlighting for shell
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
3 unlet b:current_syntax
394bcf0d5bac add POD highlighting for shell
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
4 syn include @Pod syntax/pod.vim
394bcf0d5bac add POD highlighting for shell
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
5 syn region shPOD start="^=pod" start="^=head" end="^=cut" keepend contained contains=@Pod
394bcf0d5bac add POD highlighting for shell
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
6 let b:current_syntax = s:current_syntax
394bcf0d5bac add POD highlighting for shell
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
7
394bcf0d5bac add POD highlighting for shell
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
8 syn region shPODHeredoc start="^:<<=cut" end="^=cut" keepend contains=shPOD
394bcf0d5bac add POD highlighting for shell
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
9
394bcf0d5bac add POD highlighting for shell
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
10 hi! def link shPOD Comment
394bcf0d5bac add POD highlighting for shell
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
11 hi! def link podCommand SpecialComment
394bcf0d5bac add POD highlighting for shell
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
12 hi! def link podCmdText Question
394bcf0d5bac add POD highlighting for shell
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
13 hi! def link podFormat StorageClass
394bcf0d5bac add POD highlighting for shell
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
14
394bcf0d5bac add POD highlighting for shell
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
15 map <F10> :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' . synIDattr(synID(line("."),col("."),0),"name") . "> lo<" . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">"<CR>

mercurial