Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [setlocal]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
561 views

Difference between buffer-local and global-local options

:h local-options says: for each buffer-local option there also is a global value, which is used for new buffers. With ":set" both the local and global value is changed. With "setlocal&...
Kvass's user avatar
  • 195
1 vote
0 answers
142 views

Local "statusline" override problem

I'm currently writing a plugin, and got stuck with this problem. My plugin opens a new window with all local options I want, but also sets the statusline option to display some useful information. Vim ...
Max_Payne's user avatar
4 votes
1 answer
5k views

Differences between local & global

From :h 'ar': ...If this option has a local value, use this command to switch back to using the global value: :set autoread< What do local & global value exactly mean? I ...
Cy8099's user avatar
  • 433
1 vote
1 answer
77 views

Saving object state between foldlevel calls

I am trying to implement a custom folding function in a way that precomputes all the folds in a single pass and then reports the required foldlevels as needed. To do so, I use a single dictionary that ...
maksay's user avatar
  • 58
24 votes
3 answers
18k views

Does "set" command affect only the active buffer?

I have two buffers in vim: :ls 1 %a ".vimrc" line 1 2 #h "script.sh" line 1 Press ENTER or type command to continue As seen above, I'm on the first ...
Martin's user avatar
  • 965