mirror of
https://github.com/amix/vimrc
synced 2025-06-16 01:25:00 +08:00
Updated plugins
This commit is contained in:
@ -30,14 +30,14 @@ installed.
|
||||
========================================================================
|
||||
Contents~
|
||||
|
||||
:TRequire .............................. |:TRequire|
|
||||
:TLet .................................. |:TLet|
|
||||
:TScratch .............................. |:TScratch|
|
||||
:TVarArg ............................... |:TVarArg|
|
||||
:TKeyArg ............................... |:TKeyArg|
|
||||
:TBrowseOutput ......................... |:TBrowseOutput|
|
||||
:TBrowseScriptnames .................... |:TBrowseScriptnames|
|
||||
:TTimeCommand .......................... |:TTimeCommand|
|
||||
:Tlibtrace ............................. |:Tlibtrace|
|
||||
:Tlibtraceset .......................... |:Tlibtraceset|
|
||||
:Tlibassert ............................ |:Tlibassert|
|
||||
Add .................................... |Add()|
|
||||
TestGetArg ............................. |TestGetArg()|
|
||||
TestGetArg1 ............................ |TestGetArg1()|
|
||||
@ -48,6 +48,15 @@ Contents~
|
||||
g:tlib#debug ........................... |g:tlib#debug|
|
||||
tlib#notify#Echo ....................... |tlib#notify#Echo()|
|
||||
tlib#notify#TrimMessage ................ |tlib#notify#TrimMessage()|
|
||||
g:tlib#trace#backtrace ................. |g:tlib#trace#backtrace|
|
||||
g:tlib#trace#printf .................... |g:tlib#trace#printf|
|
||||
tlib#trace#PrintToFile ................. |tlib#trace#PrintToFile()|
|
||||
tlib#trace#Set ......................... |tlib#trace#Set()|
|
||||
tlib#trace#Backtrace ................... |tlib#trace#Backtrace()|
|
||||
tlib#trace#Print ....................... |tlib#trace#Print()|
|
||||
tlib#trace#Enable ...................... |tlib#trace#Enable()|
|
||||
tlib#trace#Disable ..................... |tlib#trace#Disable()|
|
||||
tlib#dictionary#Rev .................... |tlib#dictionary#Rev()|
|
||||
g:tlib_persistent ...................... |g:tlib_persistent|
|
||||
tlib#persistent#Dir .................... |tlib#persistent#Dir()|
|
||||
tlib#persistent#Filename ............... |tlib#persistent#Filename()|
|
||||
@ -66,6 +75,7 @@ Contents~
|
||||
tlib#progressbar#Display ............... |tlib#progressbar#Display()|
|
||||
tlib#progressbar#Restore ............... |tlib#progressbar#Restore()|
|
||||
tlib#eval#FormatValue .................. |tlib#eval#FormatValue()|
|
||||
tlib#eval#Extend ....................... |tlib#eval#Extend()|
|
||||
tlib#list#Inject ....................... |tlib#list#Inject()|
|
||||
tlib#list#Compact ...................... |tlib#list#Compact()|
|
||||
tlib#list#Flatten ...................... |tlib#list#Flatten()|
|
||||
@ -83,6 +93,7 @@ Contents~
|
||||
tlib#cmd#BrowseOutputWithCallback ...... |tlib#cmd#BrowseOutputWithCallback()|
|
||||
tlib#cmd#DefaultBrowseOutput ........... |tlib#cmd#DefaultBrowseOutput()|
|
||||
tlib#cmd#ParseScriptname ............... |tlib#cmd#ParseScriptname()|
|
||||
tlib#cmd#TBrowseScriptnames ............ |tlib#cmd#TBrowseScriptnames()|
|
||||
tlib#cmd#UseVertical ................... |tlib#cmd#UseVertical()|
|
||||
tlib#cmd#Time .......................... |tlib#cmd#Time()|
|
||||
tlib#cmd#Capture ....................... |tlib#cmd#Capture()|
|
||||
@ -91,6 +102,7 @@ Contents~
|
||||
tlib#balloon#Register .................. |tlib#balloon#Register()|
|
||||
tlib#balloon#Remove .................... |tlib#balloon#Remove()|
|
||||
tlib#balloon#Expr ...................... |tlib#balloon#Expr()|
|
||||
tlib#balloon#Expand .................... |tlib#balloon#Expand()|
|
||||
g:tlib#vcs#def ......................... |g:tlib#vcs#def|
|
||||
g:tlib#vcs#executables ................. |g:tlib#vcs#executables|
|
||||
g:tlib#vcs#check ....................... |g:tlib#vcs#check|
|
||||
@ -98,6 +110,7 @@ Contents~
|
||||
tlib#vcs#FindVCS ....................... |tlib#vcs#FindVCS()|
|
||||
tlib#vcs#Ls ............................ |tlib#vcs#Ls()|
|
||||
tlib#vcs#Diff .......................... |tlib#vcs#Diff()|
|
||||
tlib#vcs#GitLsPostprocess .............. |tlib#vcs#GitLsPostprocess()|
|
||||
tlib#char#Get .......................... |tlib#char#Get()|
|
||||
tlib#char#IsAvailable .................. |tlib#char#IsAvailable()|
|
||||
tlib#char#GetWithTimeout ............... |tlib#char#GetWithTimeout()|
|
||||
@ -129,6 +142,7 @@ Contents~
|
||||
tlib#normal#WithRegister ............... |tlib#normal#WithRegister()|
|
||||
tlib#time#MSecs ........................ |tlib#time#MSecs()|
|
||||
tlib#time#Now .......................... |tlib#time#Now()|
|
||||
tlib#time#FormatNow .................... |tlib#time#FormatNow()|
|
||||
tlib#time#Diff ......................... |tlib#time#Diff()|
|
||||
tlib#time#DiffMSecs .................... |tlib#time#DiffMSecs()|
|
||||
tlib#var#Let ........................... |tlib#var#Let()|
|
||||
@ -187,6 +201,7 @@ Contents~
|
||||
tlib#agent#Null ........................ |tlib#agent#Null()|
|
||||
tlib#agent#ExecAgentByName ............. |tlib#agent#ExecAgentByName()|
|
||||
tlib#agent#CompleteAgentNames .......... |tlib#agent#CompleteAgentNames()|
|
||||
tlib#agent#Complete .................... |tlib#agent#Complete()|
|
||||
tlib#bitwise#Num2Bits .................. |tlib#bitwise#Num2Bits()|
|
||||
tlib#bitwise#Bits2Num .................. |tlib#bitwise#Bits2Num()|
|
||||
tlib#bitwise#AND ....................... |tlib#bitwise#AND()|
|
||||
@ -206,6 +221,7 @@ Contents~
|
||||
tlib#rx#Escape ......................... |tlib#rx#Escape()|
|
||||
tlib#rx#EscapeReplace .................. |tlib#rx#EscapeReplace()|
|
||||
tlib#rx#Suffixes ....................... |tlib#rx#Suffixes()|
|
||||
tlib#rx#LooksLikeRegexp ................ |tlib#rx#LooksLikeRegexp()|
|
||||
g:tlib_tags_extra ...................... |g:tlib_tags_extra|
|
||||
g:tlib_tag_substitute .................. |g:tlib_tag_substitute|
|
||||
tlib#tag#Retrieve ...................... |tlib#tag#Retrieve()|
|
||||
@ -239,23 +255,37 @@ Contents~
|
||||
tlib#input#Edit ........................ |tlib#input#Edit()|
|
||||
tlib#input#Dialog ...................... |tlib#input#Dialog()|
|
||||
tlib#number#ConvertBase ................ |tlib#number#ConvertBase()|
|
||||
g:tlib#file#drop ....................... |g:tlib#file#drop|
|
||||
g:tlib#file#use_tabs ................... |g:tlib#file#use_tabs|
|
||||
g:tlib#file#edit_cmds .................. |g:tlib#file#edit_cmds|
|
||||
g:tlib#file#absolute_filename_rx ....... |g:tlib#file#absolute_filename_rx|
|
||||
tlib#file#Split ........................ |tlib#file#Split()|
|
||||
tlib#file#Join ......................... |tlib#file#Join()|
|
||||
tlib#file#Relative ..................... |tlib#file#Relative()|
|
||||
tlib#file#Absolute ..................... |tlib#file#Absolute()|
|
||||
tlib#file#Canonic ...................... |tlib#file#Canonic()|
|
||||
tlib#file#With ......................... |tlib#file#With()|
|
||||
tlib#file#Edit ......................... |tlib#file#Edit()|
|
||||
tlib#file#Glob ......................... |tlib#file#Glob()|
|
||||
tlib#file#Globpath ..................... |tlib#file#Globpath()|
|
||||
g:tlib#sys#special_protocols ........... |g:tlib#sys#special_protocols|
|
||||
g:tlib#sys#special_suffixes ............ |g:tlib#sys#special_suffixes|
|
||||
g:tlib#sys#system_rx ................... |g:tlib#sys#system_rx|
|
||||
g:tlib#sys#system_browser .............. |g:tlib#sys#system_browser|
|
||||
g:tlib#sys#windows ..................... |g:tlib#sys#windows|
|
||||
g:tlib#sys#null ........................ |g:tlib#sys#null|
|
||||
tlib#sys#IsCygwinBin ................... |tlib#sys#IsCygwinBin()|
|
||||
tlib#sys#IsExecutable .................. |tlib#sys#IsExecutable()|
|
||||
g:tlib#sys#check_cygpath ............... |g:tlib#sys#check_cygpath|
|
||||
g:tlib#sys#cygwin_path_rx .............. |g:tlib#sys#cygwin_path_rx|
|
||||
g:tlib#sys#cygwin_expr ................. |g:tlib#sys#cygwin_expr|
|
||||
tlib#sys#IsCygwinBin ................... |tlib#sys#IsCygwinBin()|
|
||||
tlib#sys#GetCmd ........................ |tlib#sys#GetCmd()|
|
||||
tlib#sys#MaybeUseCygpath ............... |tlib#sys#MaybeUseCygpath()|
|
||||
tlib#sys#ConvertPath ................... |tlib#sys#ConvertPath()|
|
||||
tlib#sys#FileArgs ...................... |tlib#sys#FileArgs()|
|
||||
tlib#sys#IsSpecial ..................... |tlib#sys#IsSpecial()|
|
||||
tlib#sys#Open .......................... |tlib#sys#Open()|
|
||||
tlib#sys#SystemInDir ................... |tlib#sys#SystemInDir()|
|
||||
tlib#paragraph#GetMetric ............... |tlib#paragraph#GetMetric()|
|
||||
tlib#paragraph#Move .................... |tlib#paragraph#Move()|
|
||||
g:tlib_inputlist_pct ................... |g:tlib_inputlist_pct|
|
||||
@ -265,27 +295,40 @@ Contents~
|
||||
tlib#World#New ......................... |tlib#World#New()|
|
||||
prototype.PrintLines
|
||||
prototype.Suspend
|
||||
tlib#loclist#Browse .................... |tlib#loclist#Browse()|
|
||||
tlib#tab#BufMap ........................ |tlib#tab#BufMap()|
|
||||
tlib#tab#TabWinNr ...................... |tlib#tab#TabWinNr()|
|
||||
tlib#tab#Set ........................... |tlib#tab#Set()|
|
||||
tlib#date#IsDate ....................... |tlib#date#IsDate()|
|
||||
tlib#date#Format ....................... |tlib#date#Format()|
|
||||
tlib#date#DiffInDays ................... |tlib#date#DiffInDays()|
|
||||
tlib#date#Parse ........................ |tlib#date#Parse()|
|
||||
tlib#date#SecondsSince1970 ............. |tlib#date#SecondsSince1970()|
|
||||
tlib#date#Shift ........................ |tlib#date#Shift()|
|
||||
tlib#type#IsNumber ..................... |tlib#type#IsNumber()|
|
||||
tlib#type#IsString ..................... |tlib#type#IsString()|
|
||||
tlib#type#IsFuncref .................... |tlib#type#IsFuncref()|
|
||||
tlib#type#IsList ....................... |tlib#type#IsList()|
|
||||
tlib#type#IsDictionary ................. |tlib#type#IsDictionary()|
|
||||
tlib#type#Is ........................... |tlib#type#Is()|
|
||||
tlib#type#Are .......................... |tlib#type#Are()|
|
||||
tlib#type#Has .......................... |tlib#type#Has()|
|
||||
tlib#type#Have ......................... |tlib#type#Have()|
|
||||
tlib#Filter_fuzzy#New .................. |tlib#Filter_fuzzy#New()|
|
||||
tlib#assert#Enable ..................... |tlib#assert#Enable()|
|
||||
tlib#assert#Disable .................... |tlib#assert#Disable()|
|
||||
tlib#assert#Assert ..................... |tlib#assert#Assert()|
|
||||
tlib#assert#Map ........................ |tlib#assert#Map()|
|
||||
tlib#assert#All ........................ |tlib#assert#All()|
|
||||
tlib#textobjects#StandardParagraph ..... |standard-paragraph|
|
||||
tlib#textobjects#Init .................. |tlib#textobjects#Init()|
|
||||
v_sp ................................... |v_sp|
|
||||
o_sp ................................... |o_sp|
|
||||
tlib#arg#Get ........................... |tlib#arg#Get()|
|
||||
tlib#arg#Let ........................... |tlib#arg#Let()|
|
||||
tlib#arg#Key ........................... |tlib#arg#Key()|
|
||||
tlib#arg#StringAsKeyArgs ............... |tlib#arg#StringAsKeyArgs()|
|
||||
tlib#arg#StringAsKeyArgsEqual .......... |tlib#arg#StringAsKeyArgsEqual()|
|
||||
tlib#arg#GetOpts ....................... |tlib#arg#GetOpts()|
|
||||
tlib#arg#Ex ............................ |tlib#arg#Ex()|
|
||||
tlib#fixes#Winpos ...................... |tlib#fixes#Winpos()|
|
||||
g:tlib#dir#sep ......................... |g:tlib#dir#sep|
|
||||
@ -316,6 +359,24 @@ Contents~
|
||||
tlib#grep#LocList ...................... |tlib#grep#LocList()|
|
||||
tlib#grep#QuickFixList ................. |tlib#grep#QuickFixList()|
|
||||
tlib#grep#List ......................... |tlib#grep#List()|
|
||||
tlib#qfl#FormatQFLE .................... |tlib#qfl#FormatQFLE()|
|
||||
tlib#qfl#QfeFilename ................... |tlib#qfl#QfeFilename()|
|
||||
tlib#qfl#InitListBuffer ................ |tlib#qfl#InitListBuffer()|
|
||||
tlib#qfl#SetSyntax ..................... |tlib#qfl#SetSyntax()|
|
||||
tlib#qfl#Balloon ....................... |tlib#qfl#Balloon()|
|
||||
tlib#qfl#AgentEditQFE .................. |tlib#qfl#AgentEditQFE()|
|
||||
tlib#qfl#AgentPreviewQFE ............... |tlib#qfl#AgentPreviewQFE()|
|
||||
tlib#qfl#AgentGotoQFE .................. |tlib#qfl#AgentGotoQFE()|
|
||||
tlib#qfl#AgentWithSelected ............. |tlib#qfl#AgentWithSelected()|
|
||||
tlib#qfl#RunCmdOnSelected .............. |tlib#qfl#RunCmdOnSelected()|
|
||||
tlib#qfl#AgentSplitBuffer .............. |tlib#qfl#AgentSplitBuffer()|
|
||||
tlib#qfl#AgentTabBuffer ................ |tlib#qfl#AgentTabBuffer()|
|
||||
tlib#qfl#AgentVSplitBuffer ............. |tlib#qfl#AgentVSplitBuffer()|
|
||||
tlib#qfl#AgentEditLine ................. |tlib#qfl#AgentEditLine()|
|
||||
tlib#qfl#EditLine ...................... |tlib#qfl#EditLine()|
|
||||
tlib#qfl#SetFollowCursor ............... |tlib#qfl#SetFollowCursor()|
|
||||
tlib#qfl#QflList ....................... |tlib#qfl#QflList()|
|
||||
tlib#qfl#Browse ........................ |tlib#qfl#Browse()|
|
||||
tlib#Filter_cnf#New .................... |tlib#Filter_cnf#New()|
|
||||
prototype.Pretty
|
||||
tlib#Object#New ........................ |tlib#Object#New()|
|
||||
@ -353,19 +414,12 @@ Contents~
|
||||
tlib#string#TrimRight .................. |tlib#string#TrimRight()|
|
||||
tlib#string#Strip ...................... |tlib#string#Strip()|
|
||||
tlib#string#Count ...................... |tlib#string#Count()|
|
||||
tlib#string#SplitCommaList ............. |tlib#string#SplitCommaList()|
|
||||
|
||||
|
||||
========================================================================
|
||||
plugin/02tlib.vim~
|
||||
|
||||
*:TRequire*
|
||||
:TRequire NAME [VERSION [FILE]]
|
||||
Make a certain vim file is loaded.
|
||||
|
||||
Conventions: If FILE isn't defined, plugin/NAME.vim is loaded. The
|
||||
file must provide a variable loaded_{NAME} that represents the version
|
||||
number.
|
||||
|
||||
*:TLet*
|
||||
:TLet VAR = VALUE
|
||||
Set a variable only if it doesn't already exist.
|
||||
@ -398,17 +452,6 @@ plugin/02tlib.vim~
|
||||
endf
|
||||
<
|
||||
|
||||
*:TKeyArg*
|
||||
:TKeyArg DICT, VAR1, [VAR2, DEFAULT2] ...
|
||||
A convenience wrapper for |tlib#arg#Let|.
|
||||
EXAMPLES: >
|
||||
function! Foo(keyargs)
|
||||
TKeyArg a:keyargs, ['a', 1], 'b'
|
||||
echo 'a='. a
|
||||
echo 'b='. b
|
||||
endf
|
||||
<
|
||||
|
||||
*:TBrowseOutput*
|
||||
:TBrowseOutput COMMAND
|
||||
Ever wondered how to efficiently browse the output of a command
|
||||
@ -435,9 +478,24 @@ plugin/02tlib.vim~
|
||||
TBrowseScriptnames
|
||||
<
|
||||
|
||||
*:TTimeCommand*
|
||||
:TTimeCommand CMD
|
||||
Time the execution time of CMD.
|
||||
*:Tlibtrace*
|
||||
:Tlibtrace GUARD, VAR1, VAR2...
|
||||
Do nothing unless |tlib#trace#Enable()| was called.
|
||||
|
||||
When |:Tlibtraceset| or |tlib#trace#Enable()| were called:
|
||||
|
||||
If GUARD is a number that evaluates to true or if it is a string that
|
||||
matches a |regexp|, which was added using Tlibtrace! (with '!'),
|
||||
display the values of VAR1, VAR2 ...
|
||||
|
||||
*:Tlibtraceset*
|
||||
:Tlibtraceset
|
||||
:Tlibtraceset +RX1, -RX2...
|
||||
If |tlib#trace#Enable()| was called: With the optional <bang>, users
|
||||
can add and remove GUARDs (actually a |regexp|) that should be traced.
|
||||
|
||||
*:Tlibassert*
|
||||
:Tlibtrace ASSERTION
|
||||
|
||||
|
||||
========================================================================
|
||||
@ -493,6 +551,56 @@ tlib#notify#TrimMessage(message)
|
||||
features.
|
||||
|
||||
|
||||
========================================================================
|
||||
autoload/tlib/trace.vim~
|
||||
|
||||
*g:tlib#trace#backtrace*
|
||||
g:tlib#trace#backtrace (default: 2)
|
||||
The length of the backtrace that should be included in
|
||||
|tlib#trace#Print()|.
|
||||
|
||||
*g:tlib#trace#printf*
|
||||
g:tlib#trace#printf (default: 'echom %s')
|
||||
The command used for printing traces from |tlib#trace#Print()|.
|
||||
|
||||
*tlib#trace#PrintToFile()*
|
||||
tlib#trace#PrintToFile(filename)
|
||||
Set |g:tlib#trace#printf| to make |tlib#trace#Print()| print to
|
||||
`filename`.
|
||||
|
||||
*tlib#trace#Set()*
|
||||
tlib#trace#Set(vars)
|
||||
Set the tracing |regexp|. See |:Tlibtrace|.
|
||||
This will also call |tlib#trace#Enable()|.
|
||||
|
||||
Examples:
|
||||
call tlib#trace#Set(["+foo", "-bar"])
|
||||
call tlib#trace#Set("+foo,-bar")
|
||||
|
||||
*tlib#trace#Backtrace()*
|
||||
tlib#trace#Backtrace(caller)
|
||||
|
||||
*tlib#trace#Print()*
|
||||
tlib#trace#Print(caller, vars, values)
|
||||
Print the values of vars. The first value is a "guard" (see
|
||||
|:Tlibtrace|).
|
||||
|
||||
*tlib#trace#Enable()*
|
||||
tlib#trace#Enable()
|
||||
Enable tracing via |:Tlibtrace|.
|
||||
|
||||
*tlib#trace#Disable()*
|
||||
tlib#trace#Disable()
|
||||
Disable tracing via |:Tlibtrace|.
|
||||
|
||||
|
||||
========================================================================
|
||||
autoload/tlib/dictionary.vim~
|
||||
|
||||
*tlib#dictionary#Rev()*
|
||||
tlib#dictionary#Rev(dict)
|
||||
|
||||
|
||||
========================================================================
|
||||
autoload/tlib/persistent.vim~
|
||||
|
||||
@ -595,6 +703,9 @@ autoload/tlib/eval.vim~
|
||||
*tlib#eval#FormatValue()*
|
||||
tlib#eval#FormatValue(value, ...)
|
||||
|
||||
*tlib#eval#Extend()*
|
||||
tlib#eval#Extend(a, b, ...)
|
||||
|
||||
|
||||
========================================================================
|
||||
autoload/tlib/list.vim~
|
||||
@ -714,6 +825,9 @@ tlib#cmd#DefaultBrowseOutput(cmd)
|
||||
*tlib#cmd#ParseScriptname()*
|
||||
tlib#cmd#ParseScriptname(line)
|
||||
|
||||
*tlib#cmd#TBrowseScriptnames()*
|
||||
tlib#cmd#TBrowseScriptnames()
|
||||
|
||||
*tlib#cmd#UseVertical()*
|
||||
tlib#cmd#UseVertical(?rx='')
|
||||
Look at the history whether the command was called with vertical. If
|
||||
@ -751,6 +865,9 @@ tlib#balloon#Remove(expr)
|
||||
*tlib#balloon#Expr()*
|
||||
tlib#balloon#Expr()
|
||||
|
||||
*tlib#balloon#Expand()*
|
||||
tlib#balloon#Expand(expr)
|
||||
|
||||
|
||||
========================================================================
|
||||
autoload/tlib/vcs.vim~
|
||||
@ -784,6 +901,9 @@ tlib#vcs#Ls(?filename=bufname('%'), ?vcs=[type, dir])
|
||||
tlib#vcs#Diff(filename, ?vcs=[type, dir])
|
||||
Return the diff for "filename"
|
||||
|
||||
*tlib#vcs#GitLsPostprocess()*
|
||||
tlib#vcs#GitLsPostprocess(filename)
|
||||
|
||||
|
||||
========================================================================
|
||||
autoload/tlib/char.vim~
|
||||
@ -918,7 +1038,7 @@ tlib#cache#Dir(?mode = 'bg')
|
||||
tlib#cache#Filename(type, ?file=%, ?mkdir=0, ?dir='')
|
||||
|
||||
*tlib#cache#Save()*
|
||||
tlib#cache#Save(cfile, dictionary)
|
||||
tlib#cache#Save(cfile, dictionary, ...)
|
||||
|
||||
*tlib#cache#MTime()*
|
||||
tlib#cache#MTime(cfile)
|
||||
@ -927,7 +1047,7 @@ tlib#cache#MTime(cfile)
|
||||
tlib#cache#Get(cfile, ...)
|
||||
|
||||
*tlib#cache#Value()*
|
||||
tlib#cache#Value(cfile, generator, ftime, ...)
|
||||
tlib#cache#Value(cfile, generator, ftime, ?generator_args=[], ?options={})
|
||||
Get a cached value from cfile. If it is outdated (compared to ftime)
|
||||
or does not exist, create it calling a generator function.
|
||||
|
||||
@ -961,6 +1081,9 @@ tlib#time#MSecs()
|
||||
*tlib#time#Now()*
|
||||
tlib#time#Now()
|
||||
|
||||
*tlib#time#FormatNow()*
|
||||
tlib#time#FormatNow()
|
||||
|
||||
*tlib#time#Diff()*
|
||||
tlib#time#Diff(a, b, ...)
|
||||
|
||||
@ -1185,6 +1308,9 @@ tlib#agent#ExecAgentByName(world, selected)
|
||||
*tlib#agent#CompleteAgentNames()*
|
||||
tlib#agent#CompleteAgentNames(ArgLead, CmdLine, CursorPos)
|
||||
|
||||
*tlib#agent#Complete()*
|
||||
tlib#agent#Complete(world, selected)
|
||||
|
||||
|
||||
========================================================================
|
||||
autoload/tlib/bitwise.vim~
|
||||
@ -1273,6 +1399,9 @@ tlib#rx#EscapeReplace(text, ?magic='m')
|
||||
*tlib#rx#Suffixes()*
|
||||
tlib#rx#Suffixes(...)
|
||||
|
||||
*tlib#rx#LooksLikeRegexp()*
|
||||
tlib#rx#LooksLikeRegexp(text)
|
||||
|
||||
|
||||
========================================================================
|
||||
autoload/tlib/tag.vim~
|
||||
@ -1510,6 +1639,9 @@ tlib#input#List(type. ?query='', ?list=[], ?handlers=[], ?default="", ?timeout=0
|
||||
Several pattern matching styles are supported. See
|
||||
|g:tlib#input#filter_mode|.
|
||||
|
||||
Users can type <Tab> to complete the current filter with the longest
|
||||
match.
|
||||
|
||||
EXAMPLES: >
|
||||
echo tlib#input#List('s', 'Select one item', [100,200,300])
|
||||
echo tlib#input#List('si', 'Select one item', [100,200,300])
|
||||
@ -1582,6 +1714,19 @@ tlib#number#ConvertBase(num, base, ...)
|
||||
========================================================================
|
||||
autoload/tlib/file.vim~
|
||||
|
||||
*g:tlib#file#drop*
|
||||
g:tlib#file#drop (default: has('gui'))
|
||||
If true, use |:drop| to edit loaded buffers (only available with GUI).
|
||||
|
||||
*g:tlib#file#use_tabs*
|
||||
g:tlib#file#use_tabs (default: 0)
|
||||
|
||||
*g:tlib#file#edit_cmds*
|
||||
g:tlib#file#edit_cmds (default: g:tlib#file#use_tabs ? {'buffer': 'tab split | buffer', 'edit': 'tabedit'} : {})
|
||||
|
||||
*g:tlib#file#absolute_filename_rx*
|
||||
g:tlib#file#absolute_filename_rx (default: '^\~\?[\/]')
|
||||
|
||||
*tlib#file#Split()*
|
||||
tlib#file#Split(filename)
|
||||
EXAMPLES: >
|
||||
@ -1590,7 +1735,7 @@ tlib#file#Split(filename)
|
||||
<
|
||||
|
||||
*tlib#file#Join()*
|
||||
tlib#file#Join(filename_parts, ?strip_slashes=1)
|
||||
tlib#file#Join(filename_parts, ?strip_slashes=1, ?maybe_absolute=0)
|
||||
EXAMPLES: >
|
||||
tlib#file#Join(['foo', 'bar', 'filename.txt'])
|
||||
=> 'foo/bar/filename.txt'
|
||||
@ -1612,21 +1757,56 @@ tlib#file#Canonic(filename, ...)
|
||||
*tlib#file#With()*
|
||||
tlib#file#With(fcmd, bcmd, files, ?world={})
|
||||
|
||||
*tlib#file#Edit()*
|
||||
tlib#file#Edit(fileid)
|
||||
Return 0 if the file isn't readable/doesn't exist.
|
||||
Otherwise return 1.
|
||||
|
||||
*tlib#file#Glob()*
|
||||
tlib#file#Glob(pattern)
|
||||
|
||||
*tlib#file#Globpath()*
|
||||
tlib#file#Globpath(path, pattern)
|
||||
|
||||
|
||||
========================================================================
|
||||
autoload/tlib/sys.vim~
|
||||
|
||||
*g:tlib#sys#special_protocols*
|
||||
g:tlib#sys#special_protocols (default: ['https\?', 'nntp', 'mailto'])
|
||||
A list of |regexp|s matching protocol names that should be handled
|
||||
by |g:tlib#sys#system_browser|.
|
||||
CAVEAT: Must be a |\V| |regexp|.
|
||||
|
||||
*g:tlib#sys#special_suffixes*
|
||||
g:tlib#sys#special_suffixes (default: ['xlsx\?', 'docx\?', 'pptx\?', 'accdb', 'mdb', 'sqlite', 'pdf', 'jpg', 'png', 'gif'])
|
||||
A list of |regexp|s matching suffixes that should be handled by
|
||||
|g:tlib#sys#system_browser|.
|
||||
CAVEAT: Must be a |\V| |regexp|.
|
||||
|
||||
*g:tlib#sys#system_rx*
|
||||
g:tlib#sys#system_rx (default: printf('\V\%(\^\%(%s\):\|.\%(%s\)\)', join(g:tlib#sys#special_protocols, '\|'), join(g:tlib#sys#special_suffixes, '\|')))
|
||||
Open links matching this |regexp| with |g:tlib#sys#system_browser|.
|
||||
CAVEAT: Must be a |\V| |regexp|.
|
||||
|
||||
*g:tlib#sys#system_browser*
|
||||
g:tlib#sys#system_browser (default: ...)
|
||||
Open files in the system browser.
|
||||
|
||||
*g:tlib#sys#windows*
|
||||
g:tlib#sys#windows (default: &shell !~ 'sh' && (has('win16') || has('win32') || has('win64')))
|
||||
|
||||
*g:tlib#sys#null*
|
||||
g:tlib#sys#null (default: g:tlib#sys#windows ? 'NUL' : (filereadable('/dev/null') ? '/dev/null' : ''))
|
||||
|
||||
*tlib#sys#IsCygwinBin()*
|
||||
tlib#sys#IsCygwinBin(cmd)
|
||||
|
||||
*tlib#sys#IsExecutable()*
|
||||
tlib#sys#IsExecutable(cmd, ...)
|
||||
|
||||
*g:tlib#sys#check_cygpath*
|
||||
g:tlib#sys#check_cygpath (default: g:tlib#sys#windows && tlib#sys#IsExecutable('cygpath'))
|
||||
g:tlib#sys#check_cygpath (default: g:tlib#sys#windows && tlib#sys#IsExecutable('cygpath', 1))
|
||||
If true, check whether we have to convert a path via cyppath --
|
||||
see |tlib#sys#MaybeUseCygpath|
|
||||
|
||||
@ -1640,9 +1820,6 @@ g:tlib#sys#cygwin_expr (default: '"bash -c ''". escape(%s, "''\\") ."''"
|
||||
For cygwin binaries, convert command calls using this vim
|
||||
expression.
|
||||
|
||||
*tlib#sys#IsCygwinBin()*
|
||||
tlib#sys#IsCygwinBin(cmd)
|
||||
|
||||
*tlib#sys#GetCmd()*
|
||||
tlib#sys#GetCmd(cmd)
|
||||
|
||||
@ -1658,6 +1835,20 @@ tlib#sys#ConvertPath(converter, filename)
|
||||
*tlib#sys#FileArgs()*
|
||||
tlib#sys#FileArgs(cmd, files)
|
||||
|
||||
*tlib#sys#IsSpecial()*
|
||||
tlib#sys#IsSpecial(filename)
|
||||
Check whether filename matches |g:tlib#sys#system_rx|, i.e. whether it
|
||||
is a special file that should not be opened in vim.
|
||||
|
||||
*tlib#sys#Open()*
|
||||
tlib#sys#Open(filename)
|
||||
Open filename with the default OS application (see
|
||||
|g:tlib#sys#system_browser|), if |tlib#sys#IsSpecial()| return 1.
|
||||
Returns 1 if successful or 0 otherwise.
|
||||
|
||||
*tlib#sys#SystemInDir()*
|
||||
tlib#sys#SystemInDir(dir, expr, ?input='')
|
||||
|
||||
|
||||
========================================================================
|
||||
autoload/tlib/paragraph.vim~
|
||||
@ -1715,6 +1906,13 @@ prototype.PrintLines
|
||||
prototype.Suspend
|
||||
|
||||
|
||||
========================================================================
|
||||
autoload/tlib/loclist.vim~
|
||||
|
||||
*tlib#loclist#Browse()*
|
||||
tlib#loclist#Browse(...)
|
||||
|
||||
|
||||
========================================================================
|
||||
autoload/tlib/tab.vim~
|
||||
|
||||
@ -1733,6 +1931,12 @@ tlib#tab#Set(tabnr)
|
||||
========================================================================
|
||||
autoload/tlib/date.vim~
|
||||
|
||||
*tlib#date#IsDate()*
|
||||
tlib#date#IsDate(text)
|
||||
|
||||
*tlib#date#Format()*
|
||||
tlib#date#Format(secs1970)
|
||||
|
||||
*tlib#date#DiffInDays()*
|
||||
tlib#date#DiffInDays(date1, ?date2=localtime(), ?allow_zero=0)
|
||||
|
||||
@ -1743,6 +1947,9 @@ tlib#date#Parse(date, ?allow_zero=0) "{{{3
|
||||
tlib#date#SecondsSince1970(date, ...)
|
||||
tlib#date#SecondsSince1970(date, ?daysshift=0, ?allow_zero=0)
|
||||
|
||||
*tlib#date#Shift()*
|
||||
tlib#date#Shift(date, shift)
|
||||
|
||||
|
||||
========================================================================
|
||||
autoload/tlib/type.vim~
|
||||
@ -1762,6 +1969,18 @@ tlib#type#IsList(expr)
|
||||
*tlib#type#IsDictionary()*
|
||||
tlib#type#IsDictionary(expr)
|
||||
|
||||
*tlib#type#Is()*
|
||||
tlib#type#Is(val, type)
|
||||
|
||||
*tlib#type#Are()*
|
||||
tlib#type#Are(vals, type)
|
||||
|
||||
*tlib#type#Has()*
|
||||
tlib#type#Has(val, lst)
|
||||
|
||||
*tlib#type#Have()*
|
||||
tlib#type#Have(vals, lst)
|
||||
|
||||
|
||||
========================================================================
|
||||
autoload/tlib/Filter_fuzzy.vim~
|
||||
@ -1774,6 +1993,27 @@ tlib#Filter_fuzzy#New(...)
|
||||
In "fuzzy" mode, the pretty printing of filenames is disabled.
|
||||
|
||||
|
||||
========================================================================
|
||||
autoload/tlib/assert.vim~
|
||||
|
||||
*tlib#assert#Enable()*
|
||||
tlib#assert#Enable()
|
||||
Enable tracing via |:Tlibassert|.
|
||||
|
||||
*tlib#assert#Disable()*
|
||||
tlib#assert#Disable()
|
||||
Disable tracing via |:Tlibassert|.
|
||||
|
||||
*tlib#assert#Assert()*
|
||||
tlib#assert#Assert(caller, check, vals)
|
||||
|
||||
*tlib#assert#Map()*
|
||||
tlib#assert#Map(vals, expr)
|
||||
|
||||
*tlib#assert#All()*
|
||||
tlib#assert#All(vals)
|
||||
|
||||
|
||||
========================================================================
|
||||
autoload/tlib/textobjects.vim~
|
||||
|
||||
@ -1813,16 +2053,30 @@ tlib#arg#Let(list, ?default='')
|
||||
Set a positional arguments from a variable argument list.
|
||||
See tlib#input#List() for an example.
|
||||
|
||||
*tlib#arg#Key()*
|
||||
tlib#arg#Key(dict, list, ?default='')
|
||||
See |:TKeyArg|.
|
||||
|
||||
*tlib#arg#StringAsKeyArgs()*
|
||||
tlib#arg#StringAsKeyArgs(string, ?keys=[], ?evaluate=0, ?sep=':')
|
||||
tlib#arg#StringAsKeyArgs(string, ?keys=[], ?evaluate=0, ?sep=':', ?booleans=0)
|
||||
|
||||
*tlib#arg#StringAsKeyArgsEqual()*
|
||||
tlib#arg#StringAsKeyArgsEqual(string)
|
||||
|
||||
*tlib#arg#GetOpts()*
|
||||
tlib#arg#GetOpts(args, ?def={})
|
||||
Convert a list of strings of command-line arguments into a dictonary.
|
||||
|
||||
The main use case is to pass [<f-args>], i.e. the command-line
|
||||
arguments of a command as list, from a command definition to this
|
||||
function.
|
||||
|
||||
Example:
|
||||
['-h']
|
||||
=> If def contains a 'help' key, invoke |:help| on its value.
|
||||
|
||||
['-ab', '--foo', '--bar=BAR', 'bla', bla']
|
||||
=> {'a': 1, 'b': 1, 'foo': 1, 'bar': 'BAR', '__rest__': ['bla', 'bla']}
|
||||
|
||||
['-ab', '--', '--foo', '--bar=BAR']
|
||||
=> {'a': 1, 'b': 1, '__rest__': ['--foo', '--bar=BAR']}
|
||||
|
||||
*tlib#arg#Ex()*
|
||||
tlib#arg#Ex(arg, ?chars='%#! ')
|
||||
Escape some characters in a string.
|
||||
@ -1965,6 +2219,64 @@ tlib#grep#QuickFixList(rx, files)
|
||||
tlib#grep#List(rx, files)
|
||||
|
||||
|
||||
========================================================================
|
||||
autoload/tlib/qfl.vim~
|
||||
|
||||
*tlib#qfl#FormatQFLE()*
|
||||
tlib#qfl#FormatQFLE(qfe)
|
||||
|
||||
*tlib#qfl#QfeFilename()*
|
||||
tlib#qfl#QfeFilename(qfe)
|
||||
|
||||
*tlib#qfl#InitListBuffer()*
|
||||
tlib#qfl#InitListBuffer(world)
|
||||
|
||||
*tlib#qfl#SetSyntax()*
|
||||
tlib#qfl#SetSyntax()
|
||||
|
||||
*tlib#qfl#Balloon()*
|
||||
tlib#qfl#Balloon()
|
||||
|
||||
*tlib#qfl#AgentEditQFE()*
|
||||
tlib#qfl#AgentEditQFE(world, selected, ...)
|
||||
|
||||
*tlib#qfl#AgentPreviewQFE()*
|
||||
tlib#qfl#AgentPreviewQFE(world, selected)
|
||||
|
||||
*tlib#qfl#AgentGotoQFE()*
|
||||
tlib#qfl#AgentGotoQFE(world, selected)
|
||||
|
||||
*tlib#qfl#AgentWithSelected()*
|
||||
tlib#qfl#AgentWithSelected(world, selected, ...)
|
||||
|
||||
*tlib#qfl#RunCmdOnSelected()*
|
||||
tlib#qfl#RunCmdOnSelected(world, selected, cmd, ...)
|
||||
|
||||
*tlib#qfl#AgentSplitBuffer()*
|
||||
tlib#qfl#AgentSplitBuffer(world, selected)
|
||||
|
||||
*tlib#qfl#AgentTabBuffer()*
|
||||
tlib#qfl#AgentTabBuffer(world, selected)
|
||||
|
||||
*tlib#qfl#AgentVSplitBuffer()*
|
||||
tlib#qfl#AgentVSplitBuffer(world, selected)
|
||||
|
||||
*tlib#qfl#AgentEditLine()*
|
||||
tlib#qfl#AgentEditLine(world, selected)
|
||||
|
||||
*tlib#qfl#EditLine()*
|
||||
tlib#qfl#EditLine(lnum)
|
||||
|
||||
*tlib#qfl#SetFollowCursor()*
|
||||
tlib#qfl#SetFollowCursor(world, selected)
|
||||
|
||||
*tlib#qfl#QflList()*
|
||||
tlib#qfl#QflList(list, ...)
|
||||
|
||||
*tlib#qfl#Browse()*
|
||||
tlib#qfl#Browse(...)
|
||||
|
||||
|
||||
========================================================================
|
||||
autoload/tlib/Filter_cnf.vim~
|
||||
|
||||
@ -2177,6 +2489,9 @@ tlib#string#Strip(string)
|
||||
*tlib#string#Count()*
|
||||
tlib#string#Count(string, rx)
|
||||
|
||||
*tlib#string#SplitCommaList()*
|
||||
tlib#string#SplitCommaList(text, ...)
|
||||
|
||||
|
||||
|
||||
vim:tw=78:fo=w2croql:isk=!-~,^*,^|,^":ts=8:ft=help:norl:
|
||||
|
Reference in New Issue
Block a user