Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function! OnlyAndNerdtree()
- let currentWindowID = win_getid()
- windo if win_getid() != currentWindowID && &filetype != 'nerdtree' | close | endif
- endfunction
- command! Only call OnlyAndNerdtree()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement