magic.vim Change the very-magic flag in search query. Usage cnoremap <expr> <C-x> magic#expr() Works with: search / ? commands :global :lvimgrep :lvimgrepadd :sort :substitute :vglobal :vimgrep :vimgrepadd inspired by monaqa/modesearch.vim