Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Version 0.41

- World.UseScratch(): keepalt- Really include balloon.vimMD5 checksum: 3fcbc4f7556f5378d39622e62ab8f379
  • Loading branch information...
commit 0dde5f9d919acfe3efc9281b992643f7568378f4 1 parent 12e5606
@tomtom tomtom authored committed
View
3  README
@@ -64,3 +64,6 @@ Related (small) plugins that utilize tlib and thus provide some degree of unifor
For full details, please see:
http://github.com/tomtom/tlib_vim/blob/master/doc/tlib.txt
+
+Also available via git
+http://github.com/tomtom/tlib_vim
View
6 autoload/tlib/World.vim
@@ -3,8 +3,8 @@
" @Website: http://www.vim.org/account/profile.php?user_id=4037
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Created: 2007-05-01.
-" @Last Change: 2010-09-22.
-" @Revision: 0.1.886
+" @Last Change: 2010-10-31.
+" @Revision: 0.1.887
" :filedoc:
" A prototype used by |tlib#input#List|.
@@ -566,7 +566,7 @@ endf
" :nodoc:
function! s:prototype.UseScratch() dict "{{{3
- return tlib#scratch#UseScratch(self)
+ keepalt return tlib#scratch#UseScratch(self)
endf
View
52 autoload/tlib/balloon.vim
@@ -0,0 +1,52 @@
+" @Author: Tom Link (micathom AT gmail com?subject=[vim])
+" @Website: http://www.vim.org/account/profile.php?user_id=4037
+" @GIT: http://github.com/tomtom/tlib_vim/
+" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
+" @Created: 2010-08-30.
+" @Last Change: 2010-09-05.
+" @Revision: 23
+
+
+function! tlib#balloon#Register(expr) "{{{3
+ if !has('balloon_eval')
+ return
+ endif
+ if !exists('b:tlib_balloons')
+ let b:tlib_balloons = []
+ endif
+ if !&ballooneval
+ setlocal ballooneval
+ endif
+ if &balloonexpr != 'tlib#balloon#Expr()'
+ if !empty(&balloonexpr)
+ call add(b:tlib_balloons, &balloonexpr)
+ endif
+ setlocal ballooneval balloonexpr=tlib#balloon#Expr()
+ endif
+ if index(b:tlib_balloons, a:expr) == -1
+ call add(b:tlib_balloons, a:expr)
+ endif
+endf
+
+
+function! tlib#balloon#Remove(expr) "{{{3
+ if !exists('b:tlib_balloons')
+ call filter(b:tlib_balloons, 'v:val != a:expr')
+ endif
+endf
+
+
+function! tlib#balloon#Expr() "{{{3
+ if !exists('b:tlib_balloons')
+ return ''
+ endif
+ let text = map(copy(b:tlib_balloons), 'eval(v:val)')
+ call filter(text, '!empty(v:val)')
+ if has('balloon_multiline')
+ return join(text, "\n----------------------------------\n")
+ else
+ return get(text, 0, '')
+ endif
+endf
+
+
View
5 autoload/tlib/input.vim
@@ -1,11 +1,10 @@
-
" input.vim
" @Author: Tom Link (micathom AT gmail com?subject=[vim])
" @Website: http://www.vim.org/account/profile.php?user_id=4037
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Created: 2007-06-30.
-" @Last Change: 2010-10-10.
-" @Revision: 0.0.811
+" @Last Change: 2010-10-31.
+" @Revision: 0.0.812
" :filedoc:
View
6 autoload/tlib/vim.vim
@@ -1,10 +1,10 @@
" @Author: Tom Link (micathom AT gmail com?subject=[vim])
" @Website: http://www.vim.org/account/profile.php?user_id=4037
-" @GIT: http://github.com/tomtom/vimtlib/
+" @GIT: http://github.com/tomtom/tlib_vim/
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Created: 2010-07-19.
-" @Last Change: 2010-09-14.
-" @Revision: 23
+" @Last Change: 2010-10-24.
+" @Revision: 24
let s:restoreframecmd = ''
View
6 plugin/02tlib.vim
@@ -3,8 +3,8 @@
" @Website: http://www.vim.org/account/profile.php?user_id=4037
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Created: 2007-04-10.
-" @Last Change: 2010-10-10.
-" @Revision: 652
+" @Last Change: 2010-11-12.
+" @Revision: 653
" GetLatestVimScripts: 1863 1 tlib.vim
if &cp || exists("loaded_tlib")
@@ -14,7 +14,7 @@ if v:version < 700 "{{{2
echoerr "tlib requires Vim >= 7"
finish
endif
-let loaded_tlib = 40
+let loaded_tlib = 41
let s:save_cpo = &cpo
set cpo&vim
Please sign in to comment.
Something went wrong with that request. Please try again.