commit 599238ad99642e8767c4be6adda75bd84afdfd42 parent cd1f2c803ec485074af070a2fe942a029775e5bd Author: Jason Franklin <lifecrisis@users.noreply.github.com> Date: Mon, 17 Sep 2018 08:13:07 -0400 Make NERDTreeCreator set the 'nolist' option (#889) Diffstat:
| M | lib/nerdtree/creator.vim | | | 16 | +++++++++++----- |
1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/lib/nerdtree/creator.vim b/lib/nerdtree/creator.vim @@ -284,16 +284,21 @@ endfunction " FUNCTION: s:Creator._setCommonBufOptions() {{{1 function! s:Creator._setCommonBufOptions() - "throwaway buffer options - setlocal noswapfile - setlocal buftype=nofile + + " Options for a non-file/control buffer. setlocal bufhidden=hide - setlocal nowrap + setlocal buftype=nofile + setlocal noswapfile + + " Options for controlling buffer/window appearance. setlocal foldcolumn=0 setlocal foldmethod=manual - setlocal nofoldenable setlocal nobuflisted + setlocal nofoldenable + setlocal nolist setlocal nospell + setlocal nowrap + if g:NERDTreeShowLineNumbers setlocal nu else @@ -311,6 +316,7 @@ function! s:Creator._setCommonBufOptions() call self._setupStatusline() call self._bindMappings() + setlocal filetype=nerdtree endfunction
