问题
When search something, always typing \v is quite boring.
How to write .vimrc to make it the default regular expression mode?
回答1:
I don't think there is a dedicated setting (like :set magic) but I have this line in my ~/.vimrc:
nnoremap / /\v
that make every forward search "very magic".
来源:https://stackoverflow.com/questions/9273133/how-to-enable-very-magic-mode-in-vim-with-vimrc