我正在尝试为vim
执行创建一个别名vimx
。创建新终端后,当我尝试自动完成时vi
,出现以下错误:
fish: The file 'vim' is not executable by this user
/usr/local/share/fish/functions/__fish_complete_vi.fish (line 4): begin; command vim --version
^
in . (source) call of file “-”,
called on line 37 of file “/usr/local/share/fish/functions/__fish_complete_vi.fish”,
in function “__fish_complete_vi”,
called on line 3 of file “/usr/local/share/fish/completions/vim.fish”,
with parameter list “vim”
in . (source) call of file “/usr/local/share/fish/completions/vim.fish”,
called on standard input,
in command substitution
called on standard input,
我假设这与 fish for vim 的内置自动完成功能有关,它认为 vim 命令实际上现在存在(即使它只是一个别名)。
我的鱼配置包含以下内容:
function vim
command vimx $argv
end