Make NERDTreeCreator set the 'nolist' option (#889)
This commit is contained in:
parent
cd1f2c803e
commit
599238ad99
@ -284,16 +284,21 @@ endfunction
|
|||||||
|
|
||||||
" FUNCTION: s:Creator._setCommonBufOptions() {{{1
|
" FUNCTION: s:Creator._setCommonBufOptions() {{{1
|
||||||
function! s:Creator._setCommonBufOptions()
|
function! s:Creator._setCommonBufOptions()
|
||||||
"throwaway buffer options
|
|
||||||
setlocal noswapfile
|
" Options for a non-file/control buffer.
|
||||||
setlocal buftype=nofile
|
|
||||||
setlocal bufhidden=hide
|
setlocal bufhidden=hide
|
||||||
setlocal nowrap
|
setlocal buftype=nofile
|
||||||
|
setlocal noswapfile
|
||||||
|
|
||||||
|
" Options for controlling buffer/window appearance.
|
||||||
setlocal foldcolumn=0
|
setlocal foldcolumn=0
|
||||||
setlocal foldmethod=manual
|
setlocal foldmethod=manual
|
||||||
setlocal nofoldenable
|
|
||||||
setlocal nobuflisted
|
setlocal nobuflisted
|
||||||
|
setlocal nofoldenable
|
||||||
|
setlocal nolist
|
||||||
setlocal nospell
|
setlocal nospell
|
||||||
|
setlocal nowrap
|
||||||
|
|
||||||
if g:NERDTreeShowLineNumbers
|
if g:NERDTreeShowLineNumbers
|
||||||
setlocal nu
|
setlocal nu
|
||||||
else
|
else
|
||||||
@ -311,6 +316,7 @@ function! s:Creator._setCommonBufOptions()
|
|||||||
|
|
||||||
call self._setupStatusline()
|
call self._setupStatusline()
|
||||||
call self._bindMappings()
|
call self._bindMappings()
|
||||||
|
|
||||||
setlocal filetype=nerdtree
|
setlocal filetype=nerdtree
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user