From 055978491a6d0440927105eaa407f03d6ee53c91 Mon Sep 17 00:00:00 2001 From: Robin Schneider Date: Sun, 13 Dec 2020 17:49:44 +0100 Subject: [PATCH] Set delimitMate_nesting_quotes for Python by default Closes: #173 --- doc/delimitMate.txt | 2 ++ plugin/delimitMate.vim | 1 + 2 files changed, 3 insertions(+) diff --git a/doc/delimitMate.txt b/doc/delimitMate.txt index 2678809..5ccc825 100644 --- a/doc/delimitMate.txt +++ b/doc/delimitMate.txt @@ -191,6 +191,8 @@ e.g.: > let delimitMate_nesting_quotes = ['"','`'] au FileType python let b:delimitMate_nesting_quotes = ['"'] < +For Python this is set by default by the plugin. + ------------------------------------------------------------------------------ *'delimitMate_expand_cr'* *'b:delimitMate_expand_cr'* diff --git a/plugin/delimitMate.vim b/plugin/delimitMate.vim index 46964ee..a56d772 100644 --- a/plugin/delimitMate.vim +++ b/plugin/delimitMate.vim @@ -383,6 +383,7 @@ augroup delimitMate au! " Run on file type change. au FileType * call setup() + au FileType python let b:delimitMate_nesting_quotes = ['"', "'"] " Run on new buffers. au BufNewFile,BufRead,BufEnter,CmdwinEnter *