Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vimlint err #14

Open
syngan opened this issue Dec 3, 2014 · 3 comments
Open

vimlint err #14

syngan opened this issue Dec 3, 2014 · 3 comments

Comments

@syngan
Copy link

syngan commented Dec 3, 2014

autoload/anzu/mode.vim|42 col 22 error| EVL108:2nd argument of searchpos should be either "e" or "n"
autoload/anzu.vim|136 col 55 error| EVL106:local variable `count` is used withoug l:                           

searchpos は動くと動かないの両方が設定されているよエラーです.

@osyo-manga
Copy link
Owner

ありがとうございます。
これですが、 searchpos() で『カーソルは移動したくないけど、マッチした末尾の位置を取得したい』というためこのような設定になっています。
e.g.) searchpos("homu", "ne") すると homu の末尾(u) の位置を返す( e がない場合は先頭(h)の位置を返す。
ただ、これが仕様なのかたまたま動作しているだけなのかは不明です。

@syngan
Copy link
Author

syngan commented Dec 3, 2014

マニュアルだけみて、動作はみていなかったのですが、確かに両方設定できるみたいですね。ありがとうございます。

もひとつのcount は問題ない感じですか?

@osyo-manga
Copy link
Owner

あー count の方はちょっとまずいですね。修正しておきます。
ありがとうございます。

syngan added a commit to syngan/vim-vimlint that referenced this issue Dec 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants