convert tabs to spaces
not sure how those tabs got in there!
This commit is contained in:
parent
f1a9bd3c89
commit
6e7960ba94
@ -1337,7 +1337,7 @@ function! s:InitNerdTree(dir)
|
|||||||
let dir = a:dir == '' ? expand('%:p:h') : a:dir
|
let dir = a:dir == '' ? expand('%:p:h') : a:dir
|
||||||
let dir = resolve(dir)
|
let dir = resolve(dir)
|
||||||
|
|
||||||
let path = s:oPath.New(dir)
|
let path = s:oPath.New(dir)
|
||||||
|
|
||||||
if !path.isDirectory
|
if !path.isDirectory
|
||||||
call s:EchoWarning("Error reading: " . dir)
|
call s:EchoWarning("Error reading: " . dir)
|
||||||
@ -1998,7 +1998,7 @@ function! s:OpenNodeSplit(treenode)
|
|||||||
try
|
try
|
||||||
exec("silent " . splitMode." sp " . a:treenode.path.StrForEditCmd())
|
exec("silent " . splitMode." sp " . a:treenode.path.StrForEditCmd())
|
||||||
catch /^Vim\%((\a\+)\)\=:E37/
|
catch /^Vim\%((\a\+)\)\=:E37/
|
||||||
call s:PutCursorInTreeWin()
|
call s:PutCursorInTreeWin()
|
||||||
throw "NERDTree.view.FileOpen exception: ". a:treenode.path.Str(0) ." is already open and modified."
|
throw "NERDTree.view.FileOpen exception: ". a:treenode.path.Str(0) ." is already open and modified."
|
||||||
catch /^Vim\%((\a\+)\)\=:/
|
catch /^Vim\%((\a\+)\)\=:/
|
||||||
do nothing
|
do nothing
|
||||||
@ -2052,11 +2052,11 @@ endfunction
|
|||||||
"FUNCTION: s:PutCursorInTreeWin(){{{2
|
"FUNCTION: s:PutCursorInTreeWin(){{{2
|
||||||
"Places the cursor in the nerd tree window
|
"Places the cursor in the nerd tree window
|
||||||
function! s:PutCursorInTreeWin()
|
function! s:PutCursorInTreeWin()
|
||||||
if !s:IsTreeOpen()
|
if !s:IsTreeOpen()
|
||||||
throw "NERDTree.view.InvalidOperation Exception: No NERD tree window exists"
|
throw "NERDTree.view.InvalidOperation Exception: No NERD tree window exists"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
exec s:GetTreeWinNum() . "wincmd w"
|
exec s:GetTreeWinNum() . "wincmd w"
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
"FUNCTION: s:RenderView {{{2
|
"FUNCTION: s:RenderView {{{2
|
||||||
@ -2862,13 +2862,13 @@ function! s:ShowFileSystemMenu()
|
|||||||
\ " (a)dd a childnode\n".
|
\ " (a)dd a childnode\n".
|
||||||
\ " (m)ove the current node\n".
|
\ " (m)ove the current node\n".
|
||||||
\ " (d)elete the current node\n"
|
\ " (d)elete the current node\n"
|
||||||
if s:oPath.CopyingSupported()
|
if s:oPath.CopyingSupported()
|
||||||
let prompt = prompt . " (c)opy the current node\n\n"
|
let prompt = prompt . " (c)opy the current node\n\n"
|
||||||
else
|
else
|
||||||
let prompt = prompt . " \n"
|
let prompt = prompt . " \n"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
echo prompt
|
echo prompt
|
||||||
|
|
||||||
let choice = nr2char(getchar())
|
let choice = nr2char(getchar())
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user