aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/vim.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-29 22:18:56 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-29 22:18:56 +1300
commit95f89832be313ccb9536e4ab7187cbdf1b13a506 (patch)
tree16c4a7ee8ea101cd19d201639fbfdad0b242de58 /vim/after/ftplugin/vim.vim
parentAdd regex_escape.vim plugin (diff)
downloaddotfiles-95f89832be313ccb9536e4ab7187cbdf1b13a506.tar.gz
dotfiles-95f89832be313ccb9536e4ab7187cbdf1b13a506.zip
Choose regex character classes for some filetypes
Diffstat (limited to 'vim/after/ftplugin/vim.vim')
-rw-r--r--vim/after/ftplugin/vim.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/vim/after/ftplugin/vim.vim b/vim/after/ftplugin/vim.vim
index a7a69993..905d21dc 100644
--- a/vim/after/ftplugin/vim.vim
+++ b/vim/after/ftplugin/vim.vim
@@ -5,6 +5,10 @@ if bufname('%') !=# 'command-line'
\ . '|setlocal errorformat< makeprg<'
endif
+" Specify Vim pattern flavor for regex_escape.vim
+let b:regex_escape_flavor = 'vim'
+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_vim_maps')
finish