2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Error detected while processing function <SNR>53_getKeyAlias:

Posted at

.vimrcをいじってたら、vim開くごとにエラー出るようになって困ったのでメモ

エラーはこんな感じ

rror detected while processing function <SNR>53_getKeyAlias:
line    6:
E118: Too many arguments for function: nr2char
E15: Invalid expression: nr2char(a:code, 1)
line    8:
E121: Undefined variable: alias
E15: Invalid expression: alias

nr2char(a:code, 1)な箇所を検索すると、最近落とした wenresizerプラグインだった模様。
以下の対応したら直った。

winresizer.vim
$ vim .vim/bundle/winresizer/plugin/winresizer.vim

====== 180行目くらい
fun! s:getKeyAlias(code)
  if a:code == 13
    let alias = "Enter"
  elseif a:code == 32
    let alias = "Space"
  else
"    let alias = nr2char(a:code, 1) ←古いほう 
  let alias = nr2char(a:code) 
  end
  return alias
endfun
2
2
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?