Tlib is a Vim plugin library that offers useful utility functions in software development.
Another convenient function is tlib#input#EditList, which allows you to edit a list by copying, cutting, pasting, deleting, and editing. You can also use the :TLet VAR = VALUE command to set a variable only if it doesn’t already exist. Additionally, the :TScratch command lets you open a scratch buffer, a buffer without a file.
If you want to efficiently browse the output of a command without redirecting it to a file, you’ll find TBrowseOutput useful. This command presents the output via |tlib#input#List()|, allowing you to easily search for a keyword. When you press enter, the selected line will be copied to the command line, and you can press ESC to cancel browsing.
To use tlib, you will need Vim and Vimball. When installing tlib for the first time, you may need to create the directory ~/.vim/autoload/tlib before sourcing the vimball. If you encounter difficulties while installing the plugin, please ensure that you use the current version of vimball (vimscript #1502); the vimball that comes with vim 7.0 may not be recent enough.
In the latest release, tlib#rx#Escape() now supports very magic mode, while tlib#arg#Ex escapes "!" as well. Additionally, g:tlib_inputlist_filename_indicators can be respected, tlib#input#List() resets syntax on resume and has an option to make the list window "sticky", and tlib#agent#ToggleStickyList() is simplified. Lastly, tlib#url#Decode() is now simpler and tlib#arg#Ex() uses fnameescape() if available.
Version 0.23: N/A