Questions tagged [setlocal]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
48 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 ...
3
votes
1answer
2k 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 ...
1
vote
1answer
73 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 ...
17
votes
3answers
9k 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 ...