Elvis Editorで現在の単語を検索する方法は? vimの*と#と同じです。 Slackwareでは、viはelvisです。
ベストアンサー1
おそらくどこかに文書化されているでしょう。しかし、ソースコードを読んでみるとsearch.c
わかります。
case ELVCTRL('A'):
case ELVG('d'):
case ELVG('D'):
/* Free the previous regular expression, if any */
if (searchre)
{
safefree((void *)searchre);
}
/* Compile the regexp /\<\@\>/ */
searchre = regcomp(toCHAR("\\<\\@\\>"), win->cursor);
if (!searchre)
return RESULT_ERROR;
regexp.c
の意味は\@
次のように説明されます。
#define M_ATCURSOR 265 /* internal code for \@ */
else if (token == M_ATCURSOR)
{
tmpb = *cursor;
tmp = wordatcursor(&tmpb, ElvFalse);