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
Glorfindel
  • 211
  • 1
  • 3
  • 11

1 Answers1

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.

Rich
  • 31,891
  • 3
  • 72
  • 139