2019-09-18 13:36:38 -07:00
|
|
|
" vim: set ft=vim sw=4 :
|
|
|
|
|
|
|
|
" START_INDENT
|
|
|
|
|
|
|
|
func Some()
|
|
|
|
let x = 1
|
|
|
|
endfunc
|
|
|
|
|
|
|
|
let cmd =
|
|
|
|
\ 'some '
|
|
|
|
\ 'string'
|
|
|
|
|
2021-05-01 20:05:15 -07:00
|
|
|
if 1
|
|
|
|
let x = [
|
|
|
|
\ ]
|
|
|
|
endif
|
|
|
|
|
2021-05-01 20:21:50 -07:00
|
|
|
" TODO: add searchpair() to find matching {
|
|
|
|
"for x in [
|
|
|
|
"{
|
|
|
|
"key: 'value'
|
|
|
|
"},
|
|
|
|
"]
|
|
|
|
"eval 0
|
|
|
|
"endfor
|
|
|
|
|
|
|
|
for x in [
|
|
|
|
{key: 'value'},
|
|
|
|
]
|
|
|
|
eval 0
|
|
|
|
endfor
|
|
|
|
|
2022-06-24 05:45:07 -07:00
|
|
|
let t = [
|
|
|
|
\ {
|
|
|
|
\ 'k': 'val',
|
|
|
|
\ },
|
|
|
|
\ ]
|
|
|
|
|
2022-09-05 23:57:53 -07:00
|
|
|
def Func()
|
|
|
|
var d = dd
|
|
|
|
->extend({
|
|
|
|
})
|
|
|
|
eval 0
|
|
|
|
enddef
|
|
|
|
|
2019-09-18 13:36:38 -07:00
|
|
|
" END_INDENT
|
|
|
|
|
|
|
|
" START_INDENT
|
|
|
|
" INDENT_EXE let g:vim_indent_cont = 6
|
|
|
|
|
|
|
|
let cmd =
|
|
|
|
\ 'some '
|
|
|
|
\ 'string'
|
|
|
|
|
|
|
|
" END_INDENT
|
|
|
|
|
2021-05-01 19:09:13 -07:00
|
|
|
" START_INDENT
|
|
|
|
" INDENT_EXE let g:vim_indent_cont = 5
|
|
|
|
|
|
|
|
let list = [
|
|
|
|
\ 'one',
|
|
|
|
\ 'two']
|
|
|
|
|
|
|
|
" END_INDENT
|
|
|
|
|
2019-09-18 13:36:38 -07:00
|
|
|
" START_INDENT
|
|
|
|
" INDENT_EXE unlet g:vim_indent_cont
|
2021-05-01 19:09:13 -07:00
|
|
|
|
|
|
|
let list = [
|
|
|
|
'one',
|
|
|
|
'two',
|
|
|
|
]
|
|
|
|
echo
|
|
|
|
|
|
|
|
" END_INDENT
|
|
|
|
|
|
|
|
" START_INDENT
|
2019-09-18 13:36:38 -07:00
|
|
|
" INDENT_AT this-line
|
|
|
|
func Some()
|
|
|
|
let f = x " this-line
|
|
|
|
endfunc
|
|
|
|
" END_INDENT
|
|
|
|
|
|
|
|
" START_INDENT
|
|
|
|
" INDENT_NEXT next-line
|
|
|
|
func Some()
|
|
|
|
" next-line
|
|
|
|
let f = x
|
|
|
|
endfunc
|
|
|
|
" END_INDENT
|
|
|
|
|
|
|
|
" START_INDENT
|
|
|
|
" INDENT_PREV prev-line
|
|
|
|
func Some()
|
|
|
|
let f = x
|
|
|
|
" prev-line
|
|
|
|
endfunc
|
|
|
|
" END_INDENT
|
2021-04-23 19:48:41 -07:00
|
|
|
|
|
|
|
" START_INDENT
|
|
|
|
let a =<< END
|
|
|
|
nothing
|
|
|
|
END
|
|
|
|
" END_INDENT
|
|
|
|
|
|
|
|
" START_INDENT
|
|
|
|
" INDENT_AT this-line
|
|
|
|
let a=<< trim END
|
|
|
|
blah
|
|
|
|
blah
|
|
|
|
blah this-line
|
|
|
|
END
|
|
|
|
" END_INDENT
|