From 9931e0888b2419326ae10ebbfae532261c5c125f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 30 Jun 2016 16:11:56 +0200 Subject: Fix submodules --- vim/bundle/vim-addon-mw-utils | 1 + .../doc/cached_file_contents.txt | 7 ----- vim/bundle/vim-addon-mw-utils/doc/funcref.txt | 35 ---------------------- vim/bundle/vim-addon-mw-utils/doc/tiny_cmd.txt | 18 ----------- 4 files changed, 1 insertion(+), 60 deletions(-) create mode 160000 vim/bundle/vim-addon-mw-utils delete mode 100644 vim/bundle/vim-addon-mw-utils/doc/cached_file_contents.txt delete mode 100644 vim/bundle/vim-addon-mw-utils/doc/funcref.txt delete mode 100644 vim/bundle/vim-addon-mw-utils/doc/tiny_cmd.txt (limited to 'vim/bundle/vim-addon-mw-utils/doc') diff --git a/vim/bundle/vim-addon-mw-utils b/vim/bundle/vim-addon-mw-utils new file mode 160000 index 0000000..0c5612f --- /dev/null +++ b/vim/bundle/vim-addon-mw-utils @@ -0,0 +1 @@ +Subproject commit 0c5612fa31ee434ba055e21c76f456244b3b5109 diff --git a/vim/bundle/vim-addon-mw-utils/doc/cached_file_contents.txt b/vim/bundle/vim-addon-mw-utils/doc/cached_file_contents.txt deleted file mode 100644 index a47a8cf..0000000 --- a/vim/bundle/vim-addon-mw-utils/doc/cached_file_contents.txt +++ /dev/null @@ -1,7 +0,0 @@ -*cached_file_contents* read contents of a file then cache extracted data - Author: Marc Weber, marco-oweber@gmx.de - ------------------------------------------------------------------------ -HOWTO~ - - see cached_file_contents#Test() diff --git a/vim/bundle/vim-addon-mw-utils/doc/funcref.txt b/vim/bundle/vim-addon-mw-utils/doc/funcref.txt deleted file mode 100644 index cb366d0..0000000 --- a/vim/bundle/vim-addon-mw-utils/doc/funcref.txt +++ /dev/null @@ -1,35 +0,0 @@ -*funcref* create lazier function references. Pass arguments to create closure - like function calls - Author: Marc Weber, marco-oweber@gmx.de - ------------------------------------------------------------------------ -HOWTO~ - -Use *funcref#Function* to create a special dict called -*faked-function-reference* which can be called by *funcref#Call* -> - { 'faked_function_reference': 'file#FuncName' } -< passing some arguments and / or self: > - { 'faked_function_reference': 'MyFunc', 'args': [1,2], 'self' : { a object ] } -< You can also create lambda like functions which will be evaled: > - { 'faked_function_reference': 'return ARGS[1]' } - -REASONS ~ - Creating a Vim funcref pointing to an autoload function will make Vim source - that file. This is not lazy enough. (Seems to be no longer true? Has this changed?) - - A Vim function reference neither allows attaching arguments nor self. - - Don't care about case of variables. Normally when using Vim function - references you have to use variable names starting with an upper case letter - (E704) - -Example: ~ -> - let f = funcref#Function('return ARGS[0].ARGS[1].SELF["key"]',{'args':[3], 'self':{'key': 'value'} }) - echo funcref#Call(f, [2]) - " prints "32value" - - echo funcref#Call('no value') -< - echo funcref#Call(f, [2]) diff --git a/vim/bundle/vim-addon-mw-utils/doc/tiny_cmd.txt b/vim/bundle/vim-addon-mw-utils/doc/tiny_cmd.txt deleted file mode 100644 index bc6e002..0000000 --- a/vim/bundle/vim-addon-mw-utils/doc/tiny_cmd.txt +++ /dev/null @@ -1,18 +0,0 @@ -*tiny-cmd* make long commands short so that they hopefully no longer trigger "press Enter .. [ok]" - Author: Marc Weber, marco-oweber@gmx.de - ------------------------------------------------------------------------ -HOWTO~ - -Problem: > - exec 'map :silent! let g:g="'.repeat('foobar ',200).'"' -Now run the mapping by pressing and you notice what I'm talking about - -Solution (Example): - - -Example usage: > - let nr = tiny_cmd#Put('let g:g="'.repeat('foobar ',200).'"') - exec 'map :exec tiny_cmd#Get('.nr.')' -< -Use Pop instead of Get if you use this command once only -- cgit v1.2.3