I'm starting to edit Spider procedure files (i.e. the electron microscopy image processing program). I started creating my own syntax and ftplugin files for it, but wondered how I can make syn match
act case-insensitively?
Currently I use two statements to achieve this affect (in .vim/syntax/spider.vim
):
syn match spiderCommand /\<AC\>/$
syn match spiderCommand /\<ac\>/$
I found the following in the docs:
syntax case ignore
Maybe that helps. However, I think it applies to all the matching.
Also, since /\<AC\>/$
is just a vim pattern, you should be able to use the standard "ignore case" directives \c
. The following should work:
/\c\<AC\>/$
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With