Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. function! OnlyAndNerdtree()
  2. let currentWindowID = win_getid()
  3.  
  4. windo if win_getid() != currentWindowID && &filetype != 'nerdtree' | close | endif
  5. endfunction
  6.  
  7. command! Only call OnlyAndNerdtree()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement