When dealing with multiple splits, the split management commands are very useful: <C-W> R/r
or <C-w><S-h>
, for instance.
The issue I have is that when I have a NedTree buffer opened as a split, a command like <C-W>R
or <C-W><S-h>
will also move the NerdTree split which is obviously not the desired result.
I tried re-mapping these commands by including :NERTreeToggle<CR>:NERDTreeToggle<CR>
but that doesn't work and is pretty clunky anyway.
Is there a way to "lock" the NerdTree split either on the left or the right side and have it be ignored by split manipulation commands ?