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

`:verbose set xxx?` でファイル名だけでなく行番号も欲しい #1174

Closed
ujihisa opened this Issue Jun 21, 2018 · 4 comments

Comments

Projects
None yet
3 participants
@ujihisa
Member

ujihisa commented Jun 21, 2018

質問・報告の内容

例: 手元のvimでfiletype=vim なファイルで :verbose set iskeyword? みると

こうなってたけどguardのどこかわからなくて不便

とりあえずファイル名だけでなく行番号も分かると便利

参考: :h :verbose はいまこんなかんじです

							*:verbose-cmd*
When 'verbose' is non-zero, listing the value of a Vim option or a key map or
an abbreviation or a user-defined function or a command or a highlight group
or an autocommand will also display where it was last defined.  If it was
defined manually then there will be no "Last set" message.  When it was
defined while executing a function, user command or autocommand, the script in
which it was defined is reported.

Vimのバージョン

VIM - Vi IMproved 8.1 (2018 May 17, compiled May 25 2018 00:50:25)
Included patches: 1-22

その他

単純に :verbose の出力文字列を変えてしまうと、それに依存したプラギンがあればそれを壊してしまうので、どうするのがいいかなあ。 (それに依存するのが行儀良いか悪いかというと、それ以外の手法がなさそうなので、依存してるプラギンは守りたいですよねえ)

@h-east

This comment has been minimized.

Member

h-east commented Jun 21, 2018

タイトル xxx& --> xxx?

@ujihisa ujihisa changed the title from `:verbose set xxx&` でファイル名だけでなく行番号も欲しい to `:verbose set xxx?` でファイル名だけでなく行番号も欲しい Jun 23, 2018

@ujihisa

This comment has been minimized.

Member

ujihisa commented Jun 23, 2018

おっと、thx!

@ujihisa

This comment has been minimized.

Member

ujihisa commented Jun 23, 2018

無事手元のvimで、defaults.vim使うようにして :verbose set incsearch? すると

  incsearch
        Last set from /usr/share/vim/vim81/defaults.vim:55

が出るとこまでいきました!

diffこんなかんじです ujihisa/vim#3

@ichizok

This comment has been minimized.

Member

ichizok commented Sep 11, 2018

8.1.0362 で実装されました。
vim/vim@f29c1c6

:verbose set incsearch?
  incsearch
        Last set from /usr/share/vim/vim81/defaults.vim line 55

@ichizok ichizok closed this Sep 11, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment