Skip to content

Instantly share code, notes, and snippets.

@Osse
Created June 5, 2012 18:16
Show Gist options
  • Save Osse/2876664 to your computer and use it in GitHub Desktop.
Save Osse/2876664 to your computer and use it in GitHub Desktop.
NERDTree toggler that disables 'list' in it.
nnoremap <F2> :call MyNerdTreeToggle()<CR>
function! MyNerdTreeToggle()
NERDTreeToggle
if bufname('NERD_tree') != ""
call setwinvar(bufwinnr('NERD_tree'), '&list', 0)
endif
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment