What does + preceding command do in vim, for example from this command from this website:

     botright 10new +setlocal\ buftype=nofile\ bufhidden=wipe\
       \ nobuflisted\ nonumber\ norelativenumber\ noswapfile\ nowrap\
       \ foldmethod=manual\ nofoldenable\ modifiable\ noreadonly

1 Answer 1


The + isn't preceding the setlocal command, so much as following the :new command: it's running the setlocal command in the newly created window.

See :help :new and :help +cmd for more details.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.