1
0
mirror of https://github.com/amix/vimrc synced 2025-06-30 20:05:01 +08:00

Updated plugins

This commit is contained in:
Amir
2022-08-08 15:45:56 +02:00
parent b41536726f
commit 765adb9da3
216 changed files with 4784 additions and 2112 deletions

View File

@ -907,3 +907,13 @@ version: "1.23"
MD5 checksum: c4d6e018cbbd3b286a9b1648b748c1f3
version: "1.23"
version: '1.28'
- Remove unnecessary executable flags from files
- Merge pull request #28 from gbence/master
- Fix error E1208 raised by vim >=8.2.3141
- Merge pull request #30 from stac47/fix_for_vim_8_2_3141
- Fix win_id format mismatch on vim7 or bellow
- Merge pull request #37 from moodoofish/master
- tlib#number#ConvertBase: support base > 36
SHA256 checksum: 666e632a1ebacebf6e774cdf5c541418343ce1a3949268685ebcb60e480b9f1d

View File

@ -1,17 +1,24 @@
" @Author: Tom Link (mailto:micathom AT gmail com?subject=[vim])
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Revision: 18
" @Revision: 26
function! tlib#number#ConvertBase(num, base, ...) "{{{3
let rtype = a:0 >= 1 ? a:1 : 'string'
if a:base > 36
throw 'tlib#number#ConvertBase: base > 36 is not supported'
endif
" TLogVAR a:num, a:base, rtype
if a:base == 32
let chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"
elseif a:base == 63 || a:base == 64
let chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
elseif a:base == 85
let chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~"
elseif a:base <= 62
let chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
else
throw 'tlib#number#ConvertBase: base is not supported'
endif
let rv = []
let num = 0.0 + a:num
let chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
while floor(num) > 0.0
let div = floor(num / a:base)
let num1 = float2nr(num - a:base * div)

View File

@ -73,7 +73,11 @@ endif
" Return vim code to jump back to the original window.
function! tlib#win#SetById(win_id) "{{{3
if a:win_id != g:tlib#win#null_id
let win_id = tlib#win#GetID()
if g:tlib#win#use_winid
let win_id = tlib#win#GetID()
else
let win_id = tlib#win#GetID().win_id
endif
call tlib#win#GotoID(a:win_id)
return printf('call tlib#win#GotoID(%s)', win_id)
" " TLogVAR a:winnr

View File

@ -1,8 +1,8 @@
" @Author: Tom Link (micathom AT gmail com?subject=[vim])
" @Created: 2007-04-10.
" @Last Change: 2019-04-09.
" @Last Change: 2022-07-21.
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Revision: 836
" @Revision: 837
" @Website: http://www.vim.org/account/profile.php?user_id=4037
" GetLatestVimScripts: 1863 1 tlib.vim
" tlib.vim -- Some utility functions
@ -14,7 +14,7 @@ if v:version < 700 "{{{2
echoerr "tlib requires Vim >= 7"
finish
endif
let g:loaded_tlib = 127
let g:loaded_tlib = 128
let s:save_cpo = &cpo
set cpo&vim