1
0
mirror of https://github.com/amix/vimrc synced 2025-07-07 08:45:00 +08:00

plugin updates

plugin updates
This commit is contained in:
Geezus
2019-05-16 14:44:54 -05:00
parent e73d906a54
commit 8649b3bf27
163 changed files with 1376 additions and 3542 deletions

View File

@ -10,29 +10,6 @@ endfunction
" SECTION: General Functions {{{1
"============================================================
"FUNCTION: nerdtree#and(x,y) {{{2
" Implements and() function for Vim <= 7.2
function! nerdtree#and(x,y)
if exists("*and")
return and(a:x, a:y)
else
let l:x = a:x
let l:y = a:y
let l:n = 0
let l:result = 0
while l:x > 0 && l:y > 0
if (l:x % 2) && (l:y % 2)
let l:result += float2nr(pow(2, l:n))
endif
echomsg l:x . ", " . l:y . " => " l:result
let l:x = float2nr(l:x / 2)
let l:y = float2nr(l:y / 2)
let l:n += 1
endwhile
return l:result
endif
endfunction
"FUNCTION: nerdtree#checkForBrowse(dir) {{{2
"inits a window tree in the current buffer if appropriate
function! nerdtree#checkForBrowse(dir)
@ -192,7 +169,7 @@ endfunction
"msg: the message to echo
function! nerdtree#echo(msg)
redraw
echomsg empty(a:msg) ? "" : ("NERDTree: " . a:msg)
echomsg "NERDTree: " . a:msg
endfunction
"FUNCTION: nerdtree#echoError {{{2

View File

@ -492,7 +492,7 @@ function! s:openNodeRecursively(node)
call nerdtree#echo("Recursively opening node. Please wait...")
call a:node.openRecursively()
call b:NERDTree.render()
call nerdtree#echo("")
redraw!
endfunction
" FUNCTION: s:previewBookmark(bookmark) {{{1
@ -543,9 +543,8 @@ function! s:refreshRoot()
call nerdtree#exec(g:NERDTree.GetWinNum() . "wincmd w")
call b:NERDTree.root.refresh()
call b:NERDTree.render()
redraw
redraw!
call nerdtree#exec(l:curWin . "wincmd w")
call nerdtree#echo("")
endfunction
" FUNCTION: s:refreshCurrent(node) {{{1
@ -559,7 +558,7 @@ function! s:refreshCurrent(node)
call nerdtree#echo("Refreshing node. This could take a while...")
call node.refresh()
call b:NERDTree.render()
call nerdtree#echo("")
redraw!
endfunction
" FUNCTION: nerdtree#ui_glue#setupCommands() {{{1