mirror of
https://github.com/amix/vimrc
synced 2025-06-16 09:35:01 +08:00
Updated plugins
This commit is contained in:
@ -1,37 +1,28 @@
|
||||
_To assist in resolving your issue, provide as much information as possible, in place of the ellipses (`…`) below._
|
||||
<!--- To assist in resolving your issue, provide as much information as possible. -->
|
||||
|
||||
---
|
||||
**Environment:** _Describe your Vim/NERDTree setup._
|
||||
### Environment
|
||||
<!--- Describe your Vim/NERDTree setup. -->
|
||||
|
||||
>* Operating System: …
|
||||
>* Vim version `:version`: …
|
||||
>* NERDTree version `git rev-parse --short HEAD`: …
|
||||
>* NERDTree settings applied in your vimrc, if any:
|
||||
>
|
||||
> ```
|
||||
> …
|
||||
> ```
|
||||
* Operating System:
|
||||
* Vim version `:version`:
|
||||
* NERDTree version `git rev-parse --short HEAD`:
|
||||
* NERDTree settings applied in your vimrc, if any:
|
||||
```vim
|
||||
```
|
||||
|
||||
**Process:** _List the steps that will recreate the issue._
|
||||
### Process
|
||||
<!--- List the steps that will recreate the issue. -->
|
||||
|
||||
>1. …
|
||||
1.
|
||||
|
||||
**Current Result:** _Describe what you you currently experience from this process._
|
||||
### Current Result
|
||||
<!--- Describe what you you currently experience from this process. -->
|
||||
|
||||
>…
|
||||
### Expected Result
|
||||
<!--- Describe what you would have expected from this process. -->
|
||||
|
||||
**Expected Result:** _Describe what you would expect to have resulted from this process._
|
||||
### Screenshot(s)
|
||||
|
||||
>…
|
||||
|
||||
---
|
||||
**Optional**
|
||||
|
||||
**Screenshot(s):**
|
||||
|
||||
>…
|
||||
|
||||
**Possible Fix:** _(Have you poked around in the code?)_
|
||||
|
||||
>…
|
||||
### Possible Fix
|
||||
<!--- If you have explored the code, share what you've found. -->
|
||||
|
||||
|
@ -694,6 +694,16 @@ NERD tree. These options should be set in your vimrc.
|
||||
|'NERDTreeCreatePrefix'| Specify a prefix to be used when creating the
|
||||
NERDTree window.
|
||||
|
||||
|'NERDTreeRemoveFileCmd'| Specify a custom shell command to be used when
|
||||
deleting files. Note that it should include
|
||||
one space character at the end of the command
|
||||
and it applies only to files.
|
||||
|
||||
|'NERDTreeRemoveDirCmd'| Specify a custom shell command to be used when
|
||||
deleting directories. Note that it should
|
||||
include one space character at the end of the
|
||||
command and it applies only to directories.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
3.2. Customisation details *NERDTreeOptionDetails*
|
||||
|
||||
|
@ -185,7 +185,7 @@ function! s:Creator._createTreeWin()
|
||||
let splitLocation = g:NERDTreeWinPos ==# "left" ? "topleft " : "botright "
|
||||
let splitSize = g:NERDTreeWinSize
|
||||
|
||||
if !exists('t:NERDTreeBufName')
|
||||
if !g:NERDTree.ExistsForTab()
|
||||
let t:NERDTreeBufName = self._nextBufferName()
|
||||
silent! exec splitLocation . 'vertical ' . splitSize . ' new'
|
||||
silent! exec "edit " . t:NERDTreeBufName
|
||||
|
@ -246,7 +246,13 @@ function! s:Path.delete()
|
||||
throw "NERDTree.PathDeletionError: Could not delete directory: '" . self.str() . "'"
|
||||
endif
|
||||
else
|
||||
let success = delete(self.str())
|
||||
if exists('g:NERDTreeRemoveFileCmd')
|
||||
let cmd = g:NERDTreeRemoveFileCmd . self.str({'escape': 1})
|
||||
let success = system(cmd)
|
||||
else
|
||||
let success = delete(self.str())
|
||||
endif
|
||||
|
||||
if success != 0
|
||||
throw "NERDTree.PathDeletionError: Could not delete file: '" . self.str() . "'"
|
||||
endif
|
||||
@ -409,7 +415,7 @@ endfunction
|
||||
|
||||
" FUNCTION: Path.isHiddenUnder(path) {{{1
|
||||
function! s:Path.isHiddenUnder(path)
|
||||
|
||||
|
||||
if !self.isUnder(a:path)
|
||||
return 0
|
||||
endif
|
||||
@ -418,7 +424,7 @@ function! s:Path.isHiddenUnder(path)
|
||||
let l:segments = self.pathSegments[l:startIndex : ]
|
||||
|
||||
for l:segment in l:segments
|
||||
|
||||
|
||||
if l:segment =~# '^\.'
|
||||
return 1
|
||||
endif
|
||||
|
Reference in New Issue
Block a user