mirror of
https://github.com/amix/vimrc
synced 2025-06-16 01:25:00 +08:00
Updated plugins
This commit is contained in:
@ -6,7 +6,7 @@ endif
|
||||
try
|
||||
call tlib#input#List('mi', '', [])
|
||||
catch /.*/
|
||||
echoe "you're missing tlib. See install instructions at ".expand('<sfile>:h:h').'/README.md'
|
||||
echoe "tlib is missing. See install instructions at ".expand('<sfile>:h:h').'/README.md'
|
||||
endtry
|
||||
|
||||
fun! Filename(...) abort
|
||||
@ -117,7 +117,14 @@ function! snipMate#sniplist_str(snippet, stops) abort
|
||||
if type(item) == type('')
|
||||
let str .= item
|
||||
elseif type(item) == type([])
|
||||
let str .= snipMate#placeholder_str(item[0], a:stops)
|
||||
let placeholder = snipMate#placeholder_str(item[0], a:stops)
|
||||
if len(item) > 1 && type(item[1]) == type({})
|
||||
let placeholder = substitute(placeholder,
|
||||
\ get(item[1], 'pat', ''),
|
||||
\ get(item[1], 'sub', ''),
|
||||
\ get(item[1], 'flags', ''))
|
||||
endif
|
||||
let str .= placeholder
|
||||
endif
|
||||
|
||||
let pos += 1
|
||||
|
Reference in New Issue
Block a user