Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 67 lines (52 sloc) 2.678 kb
a5d2247 @tomtom Version 0.1: Initial upload
tomtom authored
1 This is a mirror of http://www.vim.org/scripts/script.php?script_id=1863
2
3 This library provides some utility functions. There isn't much need to
4 install it unless another plugin requires you to do so.
5
6 The most useful functions provided by this library probably are:
7
8 tlib#input#List(), tlib#input#ListW()
9 - Display a list
10 - Dynamically filter items matching a pattern (somethat like google)
11 - E.g. you filter for "foo -bar": show all entries containing foo but not bar.
12 - Select items from a list
13 - Do stuff
14 - Developers can define keys that trigger some action with the
15 selected items
16
17 tlib#input#EditList
18 + Edit a list (copy, cut, paste, delete, edit ...)
19
20 :TLet VAR = VALUE
21 Set a variable only if it doesn't already exist.
22
23 :TScratch
24 Open a scratch buffer (a buffer without a file).
25
26 :TVarArg VAR1, [VAR2, DEFAULT2] ...
27 Handle "rest" (variable) arguments in functions.
28 EXAMPLES:
29 function! Foo(...)
30 TVarArg ['a', 1], 'b'
31 echo 'a='. a
32 echo 'b='. b
33 endf
34
35 TBrowseOutput COMMAND
36 Every wondered how to effciently browse the output of a command
37 without redirecting it to a file? This command takes a command as
38 argument and presents the output via |tlib#input#List()| so that you
39 can easily search for a keyword (e.g. the name of a variable or
40 function) and the like.
41
42 If you press enter, the selected line will be copied to the command
43 line. Press ESC to cancel browsing.
44
45 EXAMPLES:
46 TBrowseOutput 20verb TeaseTheCulprit
47 TBrowseOutput let
48 TBrowseOutput map
49
50
51 Related (small) plugins that utilize tlib and thus provide some degree of uniform user experience:
52 tbibtools (vimscript #1915): bibtex-related utilities (sort, reformat, list contents ...)
53 tmboxbrowser (vimscript #1906): A mbox browser -- Read your e-mails with vim
54 tmru (vimscript #1864): Most Recently Used Files
55 trag (vimscript #2033): A slightly language-aware alternative to grep
56 tregisters (vimscript #2017): List, edit, and run/execute registers/clipboards
57 tselectbuffer (vimscript #1866): A quick buffer selector/switcher
58 tselectfile (vimscript #1865): A quick file selector/browser/explorer (sort of)
59 ttagecho (vimscript #2055): Show current tag information
60 ttagcomplete (vimscript #2069): Context-sensitive tags-based completion and code skeletons
61 ttags (vimscript #2018): Tag list browser (List, filter, preview, jump to tags)
62 ttoc (vimscript #2014): A regexp-based table of contents of the current buffer
63
64
65 For full details, please see:
66 http://github.com/tomtom/tlib_vim/blob/master/doc/tlib.txt
Something went wrong with that request. Please try again.