Похоже, ваша проблема в том, что iskeyword
содержит символ (
.
*
/ #
будет использовать iskeyword
для определения полного слово под курсором.В моем случае, если у меня есть следующий файл:
function foobar_name(params) {
}
call function_name(param1);
^-- Cursor is here
Если я нажму *, Vim выполнит: /\<function_name\><Cr>
.
Мой iskeyword
выглядитэто: iskeyword=@,48-57,_,192-255
с документы :
*'iskeyword'* *'isk'*
'iskeyword' 'isk' string (Vim default for MS-DOS and Win32:
"@,48-57,_,128-167,224-235"
otherwise: "@,48-57,_,192-255"
Vi default: "@,48-57,_")
local to buffer
{not in Vi}
Keywords are used in searching and recognizing with many commands:
"w", "*", "[i", etc. It is also used for "\k" in a |pattern|. See
'isfname' for a description of the format of this option. For C
programs you could use "a-z,A-Z,48-57,_,.,-,>".
For a help file it is set to all non-blank printable characters except
'*', '"'' and '|' (so that CTRL-] on a command finds the help for that
command).
When the 'lisp' option is on the '-' character is always included.
NOTE: This option is set to the Vi default value when 'compatible' is
set and to the Vim default value when 'compatible' is reset.