Set delimitMate_nesting_quotes for Python by default

Closes: #173
This commit is contained in:
Robin Schneider
2020-12-13 17:49:44 +01:00
parent 16687aec24
commit 055978491a
2 changed files with 3 additions and 0 deletions

View File

@@ -191,6 +191,8 @@ e.g.: >
let delimitMate_nesting_quotes = ['"','`'] let delimitMate_nesting_quotes = ['"','`']
au FileType python let b:delimitMate_nesting_quotes = ['"'] au FileType python let b:delimitMate_nesting_quotes = ['"']
< <
For Python this is set by default by the plugin.
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
*'delimitMate_expand_cr'* *'delimitMate_expand_cr'*
*'b:delimitMate_expand_cr'* *'b:delimitMate_expand_cr'*

View File

@@ -383,6 +383,7 @@ augroup delimitMate
au! au!
" Run on file type change. " Run on file type change.
au FileType * call <SID>setup() au FileType * call <SID>setup()
au FileType python let b:delimitMate_nesting_quotes = ['"', "'"]
" Run on new buffers. " Run on new buffers.
au BufNewFile,BufRead,BufEnter,CmdwinEnter * au BufNewFile,BufRead,BufEnter,CmdwinEnter *