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

plugins update

This commit is contained in:
Geezus
2019-05-16 14:48:47 -05:00
parent 5bc3d0226c
commit 555992dd9b
162 changed files with 3534 additions and 1379 deletions

View File

@ -10,6 +10,29 @@ 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)
@ -169,7 +192,7 @@ endfunction
"msg: the message to echo
function! nerdtree#echo(msg)
redraw
echomsg "NERDTree: " . a:msg
echomsg empty(a:msg) ? "" : ("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()
redraw!
call nerdtree#echo("")
endfunction
" FUNCTION: s:previewBookmark(bookmark) {{{1
@ -543,8 +543,9 @@ 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
@ -558,7 +559,7 @@ function! s:refreshCurrent(node)
call nerdtree#echo("Refreshing node. This could take a while...")
call node.refresh()
call b:NERDTree.render()
redraw!
call nerdtree#echo("")
endfunction
" FUNCTION: nerdtree#ui_glue#setupCommands() {{{1