Re: Where should $VIM point to?

2022-10-06 Thread Enan Ajmain
On Fri, 7 Oct 2022 08:25:16 +0200 Christian Brabandt wrote: > You should not be required to bother :) I realize that. That's why I didn't know about this variable before. But my question is -- sorry for prying -- is it _intended_ to point to installation directory, i.e., the system's vim files?

Re: Strange behavior of vim

2022-10-06 Thread Christian Brabandt
On Do, 06 Okt 2022, Barry Gold wrote: > Following your suggestions, I think that this behavior is caused by the > extension .cl > I'm using that for PHP classes, but it looks like my current version of vim > thinks that .cl is for "LISP" files. > > Maybe I can override that somehow? You may

Re: Strange behavior of vim

2022-10-06 Thread Barry Gold
Following your suggestions, I think that this behavior is caused by the extension .cl I'm using that for PHP classes, but it looks like my current version of vim thinks that .cl is for "LISP" files. Maybe I can override that somehow? On Thursday, October 6, 2022 at 12:13:57 PM UTC-7 Gary Johnso

Re: Where should $VIM point to?

2022-10-06 Thread Christian Brabandt
On Fr, 07 Okt 2022, Enan Ajmain wrote: > Where should `:h $VIM` point toward? Where vim is installed or where vim > configurations is situated? By default it points to where vim is > installed. But the help doc says: > > > The environment variable "$VIM" is used to locate various user files > >

Where should $VIM point to?

2022-10-06 Thread Enan Ajmain
Where should `:h $VIM` point toward? Where vim is installed or where vim configurations is situated? By default it points to where vim is installed. But the help doc says: > The environment variable "$VIM" is used to locate various user files > for Vim, such as the user startup script ".vimrc".

Re: Play sound on search wrap

2022-10-06 Thread Arun
You could try a hack by calling a function that checks for v:warningmsg and reset it, in a "statusline" invoked function. Something like: --- fu! CheckWrap() if v:warningmsg =~# "^search hit [BT]" "Ring bell exe "norm! \" endif let v:warningmsg="" endf "call CheckWrap u

Re: Play sound on search wrap

2022-10-06 Thread Bram Moolenaar
> When performing a search, it's easy for me to miss the "search hit > BOTTOM, continuing at TOP" message because my attention is focused on > the matches. For this reason, I'd like a sound of my choice to be played > when the search wraps (using +sound). Is this possible? No, don't see a way.

Play sound on search wrap

2022-10-06 Thread Lifepillar
When performing a search, it's easy for me to miss the "search hit BOTTOM, continuing at TOP" message because my attention is focused on the matches. For this reason, I'd like a sound of my choice to be played when the search wraps (using +sound). Is this possible? Thanks, Life. -- -- You recei

Re: Strange behavior of vim

2022-10-06 Thread Gary Johnson
On 2022-10-06, Barry Gold wrote: > I have been using vim for many years, but it has lately been behaving very > strangely. I have autoindent and autowrap set, but vim appears to ignore them > while editing some files. > > Note: *some* files. The exact same vim process will work properly on some

Strange behavior of vim

2022-10-06 Thread Barry Gold
I have been using vim for many years, but it has lately been behaving very strangely. I have autoindent and autowrap set, but vim appears to ignore them while editing some files. Note: **some** files. The exact same vim process will work properly on some files and misbehave on others. My .v