mirror of
https://github.com/Raimondi/delimitMate.git
synced 2025-12-06 12:44:27 +08:00
Add expand_inside_quotes to report and fix doc. Closes #179.
This commit is contained in:
@@ -538,13 +538,30 @@ endfunction " }}} delimitMate#BS()
|
|||||||
function! delimitMate#TestMappings() "{{{
|
function! delimitMate#TestMappings() "{{{
|
||||||
echom 1
|
echom 1
|
||||||
%d
|
%d
|
||||||
let options = sort(keys(delimitMate#OptionsList()))
|
let options = sort([
|
||||||
|
\ 'apostrophes',
|
||||||
|
\ 'autoclose',
|
||||||
|
\ 'balance_matchpairs',
|
||||||
|
\ 'jump_expansion',
|
||||||
|
\ 'eol_marker',
|
||||||
|
\ 'excluded_ft',
|
||||||
|
\ 'excluded_regions',
|
||||||
|
\ 'expand_cr',
|
||||||
|
\ 'expand_space',
|
||||||
|
\ 'matchpairs',
|
||||||
|
\ 'nesting_quotes',
|
||||||
|
\ 'quotes',
|
||||||
|
\ 'smart_matchpairs',
|
||||||
|
\ 'smart_quotes',
|
||||||
|
\ 'expand_inside_quotes',
|
||||||
|
\])
|
||||||
let optoutput = ['delimitMate Report', '==================', '',
|
let optoutput = ['delimitMate Report', '==================', '',
|
||||||
\ '* Options: ( ) default, (g) global, (b) buffer','']
|
\ '* Options: ( ) default, (g) global, (b) buffer','']
|
||||||
for option in options
|
for option in options
|
||||||
let scope = s:exists(option, 'b') ? 'b'
|
let scope = s:exists(option, 'b') ? 'b'
|
||||||
\ : s:exists(option, 'g') ? 'g' : ' '
|
\ : s:exists(option, 'g') ? 'g' : ' '
|
||||||
call add(optoutput, '(' . scope . ')' . ' delimitMate_' . option . ' = ' . string(s:g(option)))
|
call add(optoutput,
|
||||||
|
\'(' . scope . ')' . ' delimitMate_' . option . ' = ' . string(s:g(option)))
|
||||||
endfor
|
endfor
|
||||||
call append(line('$'), optoutput + ['--------------------',''])
|
call append(line('$'), optoutput + ['--------------------',''])
|
||||||
|
|
||||||
@@ -660,25 +677,6 @@ function! delimitMate#TestMappings() "{{{
|
|||||||
setlocal nowrap
|
setlocal nowrap
|
||||||
call feedkeys("\<Esc>\<Esc>", 'n')
|
call feedkeys("\<Esc>\<Esc>", 'n')
|
||||||
endfunction "}}}
|
endfunction "}}}
|
||||||
|
|
||||||
function! delimitMate#OptionsList() "{{{
|
|
||||||
return {
|
|
||||||
\ 'apostrophes' : '',
|
|
||||||
\ 'autoclose' : 1,
|
|
||||||
\ 'balance_matchpairs' : 0,
|
|
||||||
\ 'jump_expansion' : 0,
|
|
||||||
\ 'eol_marker' : '',
|
|
||||||
\ 'excluded_ft' : '',
|
|
||||||
\ 'excluded_regions' : 'Comment',
|
|
||||||
\ 'expand_cr' : 0,
|
|
||||||
\ 'expand_space' : 0,
|
|
||||||
\ 'matchpairs' : &matchpairs,
|
|
||||||
\ 'nesting_quotes' : [],
|
|
||||||
\ 'quotes' : '" '' `',
|
|
||||||
\ 'smart_matchpairs' : '\w',
|
|
||||||
\ 'smart_quotes' : 1,
|
|
||||||
\}
|
|
||||||
endfunction " delimitMate#OptionsList }}}
|
|
||||||
"}}}
|
"}}}
|
||||||
|
|
||||||
" vim:foldmethod=marker:foldcolumn=4:ts=2:sw=2
|
" vim:foldmethod=marker:foldcolumn=4:ts=2:sw=2
|
||||||
|
|||||||
@@ -241,7 +241,8 @@ e.g.: >
|
|||||||
*'delimitMate_smart_quotes'*
|
*'delimitMate_smart_quotes'*
|
||||||
*'b:delimitMate_smart_quotes'*
|
*'b:delimitMate_smart_quotes'*
|
||||||
Values: String with an optional ! at the beginning followed by a regexp ~
|
Values: String with an optional ! at the beginning followed by a regexp ~
|
||||||
Default: '\%(\w\|[^[:punct:][:space:]]\|\%(\\\\\)*\\\)\%#\|\%#\w' ~
|
Default:~
|
||||||
|
'\%(\w\|[^[:punct:][:space:]]\|\%(\\\\\)*\\\)\%#\|\%#\%(\w\|[^[:space:][:punct:]]\)' ~
|
||||||
|
|
||||||
A bang (!) at the beginning is removed and used to "negate" the pattern. The
|
A bang (!) at the beginning is removed and used to "negate" the pattern. The
|
||||||
remaining text is used as a regexp to be matched on the current line. A single
|
remaining text is used as a regexp to be matched on the current line. A single
|
||||||
|
|||||||
Reference in New Issue
Block a user