You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While set path=** is great, but it can be a pain if you set it globally. It tries to look for all the files and can freeze vim. For example, in the directory /home/user:
:find<Tab>
What I do now is have a per-project /home/user/path/to/project/.vimrc which is automatically sourced by having the following in the ~/.vimrc:
ifgetcwd() =~# '^\(/home/user/path/to/project/\)'setsecureexrc"execute project / directory specific .vimrcendif
It is risky to have exrc activated globally as it may execute arbitary scripts.
An alternative would be to:
setwildignore=...
Although I have not yet found a good example. It requires some regex-fu to set it nicely, doesn't it?
The text was updated successfully, but these errors were encountered:
NOTE: nothing urgent
While
set path=**
is great, but it can be a pain if you set it globally. It tries to look for all the files and can freeze vim. For example, in the directory/home/user
:What I do now is have a per-project
/home/user/path/to/project/.vimrc
which is automatically sourced by having the following in the~/.vimrc
:It is risky to have
exrc
activated globally as it may execute arbitary scripts.An alternative would be to:
Although I have not yet found a good example. It requires some regex-fu to set it nicely, doesn't it?
The text was updated successfully, but these errors were encountered: