A staple of my vimconfig is
autocmd and it can be used for a lot of
Here’s how I start NERDTree and TaskWarrior when opening an empty vim instance:
1 2 3 4 5 6 7 8 9
Note the use of
argc() to prevent this from happening when a file argument
is supplied to vim.
wincmd l is necessary to return the cursor to the taskwarrior buffer
window after opening NERDTree.