Questions tagged [setlocal]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
58 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&...
1
vote
0answers
56 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 ...
2
votes
1answer
3k 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
76 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 ...
20
votes
3answers
11k 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 ...