strang behavior when try to complete the word prefix with @

0 views
Skip to first unread message

anhnmncb

unread,
Dec 18, 2008, 2:51:52 AM12/18/08
to vim...@googlegroups.com
Hi, list,

@ is in the iskeyword list by default, but I find that when I try to complete
@word by CTRL-N/P, it fails, vim tries to complete word, not @word as I
expected. What's wrong?

--
Regards,
anhnmncb

Tony Mechelynck

unread,
Dec 18, 2008, 3:07:26 AM12/18/08
to vim...@googlegroups.com
On 18/12/08 08:51, anhnmncb wrote:
> Hi, list,
>
> @ is in the iskeyword list by default, but I find that when I try to complete
> @word by CTRL-N/P, it fails, vim tries to complete word, not @word as I
> expected. What's wrong?
>

See ":help 'isfname'".

@ in 'isfname', 'iskeyword', etc., means "all letters" (also accented if
your language uses them, thorn and edh in Icelandic, sharp s in German,
etc.). To treat the at sign as a keyword character, use @-@ or 64


Best regards,
Tony.
--
Murphy's Law is recursive. Washing your car to make it rain doesn't
work.

anhnmncb

unread,
Dec 18, 2008, 3:13:08 AM12/18/08
to vim...@googlegroups.com
On 2008-12-18, Tony Mechelynck wrote:
>
> On 18/12/08 08:51, anhnmncb wrote:
>> Hi, list,
>>
>> @ is in the iskeyword list by default, but I find that when I try to complete
>> @word by CTRL-N/P, it fails, vim tries to complete word, not @word as I
>> expected. What's wrong?
>>
>
> See ":help 'isfname'".
>
> @ in 'isfname', 'iskeyword', etc., means "all letters" (also accented if
> your language uses them, thorn and edh in Icelandic, sharp s in German,
> etc.). To treat the at sign as a keyword character, use @-@ or 64

Thanks Tony, it works :)

>
>
> Best regards,
> Tony.


--
Regards,
anhnmncb

Reply all
Reply to author
Forward
0 new messages