Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NEW: - tlib#buffer#InsertText() CHANGES: - tlib#win#[SG]etLayout(): Use a dictionnary, set &cmdheight. FIXES: - tlib#input#List(): Wrong order with pre-defined filters.
- Loading branch information
1 parent
61ee933
commit 7b21ba9
Showing
26 changed files
with
511 additions
and
295 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
" eval.vim | ||
" @Author: Thomas Link (mailto: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-09-16. | ||
" @Last Change: 2007-09-16. | ||
" @Revision: 0.0.33 | ||
|
||
if &cp || exists("loaded_tlib_eval_autoload") | ||
finish | ||
endif | ||
let loaded_tlib_eval_autoload = 1 | ||
|
||
|
||
function! tlib#eval#FormatValue(value, ...) "{{{3 | ||
TVarArg ['indent', 0] | ||
" TLogVAR a:value, indent | ||
let indent1 = indent + 1 | ||
let indenti = repeat(' ', &sw) | ||
let type = type(a:value) | ||
let acc = [] | ||
if type == 0 || type == 1 || type == 2 | ||
" TLogDBG 'Use string() for type='. type | ||
call add(acc, string(a:value)) | ||
elseif type == 3 "List | ||
" TLogDBG 'List' | ||
call add(acc, '[') | ||
for e in a:value | ||
call add(acc, printf('%s%s,', indenti, tlib#eval#FormatValue(e, indent1))) | ||
unlet e | ||
endfor | ||
call add(acc, ']') | ||
elseif type == 4 "Dictionary | ||
" TLogDBG 'Dictionary' | ||
call add(acc, '{') | ||
let indent1 = indent + 1 | ||
for [k, v] in items(a:value) | ||
call add(acc, printf("%s%s: %s,", indenti, string(k), tlib#eval#FormatValue(v, indent1))) | ||
unlet k v | ||
endfor | ||
call add(acc, '}') | ||
else | ||
" TLogDBG 'Unknown type: '. string(a:value) | ||
call add(acc, string(a:value)) | ||
endif | ||
if indent > 0 | ||
let is = repeat(' ', indent * &sw) | ||
for i in range(1,len(acc) - 1) | ||
let acc[i] = is . acc[i] | ||
endfor | ||
endif | ||
return join(acc, "\n") | ||
endf | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.