diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-29 22:18:56 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-29 22:18:56 +1300 |
commit | 95f89832be313ccb9536e4ab7187cbdf1b13a506 (patch) | |
tree | 16c4a7ee8ea101cd19d201639fbfdad0b242de58 /vim/after/ftplugin/perl.vim | |
parent | Add regex_escape.vim plugin (diff) | |
download | dotfiles-95f89832be313ccb9536e4ab7187cbdf1b13a506.tar.gz dotfiles-95f89832be313ccb9536e4ab7187cbdf1b13a506.zip |
Choose regex character classes for some filetypes
Diffstat (limited to 'vim/after/ftplugin/perl.vim')
-rw-r--r-- | vim/after/ftplugin/perl.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vim/after/ftplugin/perl.vim b/vim/after/ftplugin/perl.vim index 5dd2b7bb..bcee97d6 100644 --- a/vim/after/ftplugin/perl.vim +++ b/vim/after/ftplugin/perl.vim @@ -8,6 +8,10 @@ let b:undo_ftplugin .= '|unlet b:current_compiler' setlocal matchpairs+=<:> let b:undo_ftplugin .= '|setlocal matchpairs<' +" Specify ERE regex (close to perlre) for regex_escape.vim +let b:regex_escape_flavor = 'ere' +let b:undo_ftplugin .= '|unlet b:regex_escape_flavor' + " Stop here if the user doesn't want ftplugin mappings if exists('g:no_plugin_maps') || exists('g:no_perl_maps') finish |