1

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
2

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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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