問題タブ [ag]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
vim - Vim Ack, Ag: 編集中のファイルのディレクトリを検索
vim内で開いたファイルのディレクトリにのみ存在するファイルを検索できるようにしたい。
Ack のドキュメンタリーは次のように述べています。
VimFandomで、ファイルの現在のディレクトリを取得できることがわかりましたが、
これecho expand('%:p:h')
を Ack コマンドで評価するにはどうすればよいですか?
次のようなものが必要です。
:Ack searchpattern expand('%:p:h')