I want <leader>\
to open or close NERDTree and Tagbar, under the following conditions:
- Only close both if NERDTree and Tagbar are both opened
- Open both if NERDTree and Tagbar are closed OR if one is already opened
So far, in VIMRC, I have:
nmap <leader>\ :NERDTreeToggle<CR> :TagbarToggle<CR>
Which doesn't exactly work, since if one is opened, and the other closed. It would open the one that was closed and close the one that was opened.
How can this be achieved?