現在のカーソルの下の単語に対して vimgrep を実行するように F3 をマップする _vimrc ファイルに以下のステートメントがあります。
map <F3> :execute "noautocmd vimgrep /" . expand("<cword>") . "/gj **/*." . expand("%:e") <Bar> cw<CR>
今、現在のカーソルの下の単語と完全に一致するようにvimgrepにしたいと思います。以下のように変更しましたが、うまくいきません。
map <leader>s :execute "noautocmd vimgrep /\<" . expand("<cword>") . "\>/gj **/*." . expand("%:e") <Bar> cw<CR>
Anything is wrong? How can i achieve exact word match?