mirror of
				https://github.com/amix/vimrc
				synced 2025-10-31 23:13:35 +08:00 
			
		
		
		
	Updated plugins
This commit is contained in:
		| @ -74,7 +74,7 @@ endfunction | ||||
| function! s:promptToRenameBuffer(bufnum, msg, newFileName) | ||||
|     echo a:msg | ||||
|     if g:NERDTreeAutoDeleteBuffer || nr2char(getchar()) ==# 'y' | ||||
|         let quotedFileName = "'" . a:newFileName . "'" | ||||
|         let quotedFileName = fnameescape(a:newFilename) | ||||
|         " 1. ensure that a new buffer is loaded | ||||
|         exec "badd " . quotedFileName | ||||
|         " 2. ensure that all windows which display the just deleted filename | ||||
| @ -160,10 +160,10 @@ function! NERDTreeDeleteNode() | ||||
|     let currentNode = g:NERDTreeFileNode.GetSelected() | ||||
|     let confirmed = 0 | ||||
|  | ||||
|     if currentNode.path.isDirectory | ||||
|     if currentNode.path.isDirectory && currentNode.getChildCount() > 0 | ||||
|         let choice =input("Delete the current node\n" . | ||||
|                          \ "==========================================================\n" . | ||||
|                          \ "STOP! To delete this entire directory, type 'yes'\n" . | ||||
|                          \ "STOP! Directory is not empty! To delete, type 'yes'\n" . | ||||
|                          \ "" . currentNode.path.str() . ": ") | ||||
|         let confirmed = choice ==# 'yes' | ||||
|     else | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 amix
					amix