Skip to content
Perl/Ruby style regexp notation for Vim
Branch: master
Clone or download
othree Merge pull request #22 from takanabe/add_multi_byte_char_in_ja_help_doc
Add multibyte chars at 1st line of ja help document
Latest commit 950027d Nov 20, 2016
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc Add multibyte chars at 1st line of ja help document Nov 20, 2016
plugin restore foldopen=search behaviour for :M #19 Aug 31, 2015
.gitignore Ignore doc/tags* files Jun 25, 2013
Makefile add Makefile Oct 19, 2010
README.markdown Update version Jan 23, 2015 Update version Jan 23, 2015




It is recommended to install the script using Vundle or pathogen.

Quick Start

After installation, just press / or ? as usual. This will map to :M/ command, which is used to perform the PCRE search.

You can call eregex#toggle funtion to toggle the keymapping. For example, add the following line into your .vimrc file:

nnoremap <leader>/ :call eregex#toggle()<CR>

Then you can use / to toggle the eregex.vim.

For replacement, use :%S// (uppercase S) to trigger perl style regexp.

See :help eregex for more information.


To disable the script by default, put this line in your .vimrc file:

let g:eregex_default_enable = 0

To change the search delimiter to something else than the default / and ?, following options can be used:

let g:eregex_forward_delim = '/'
let g:eregex_backward_delim = '?'

To force case sensitive like perl re. Add the following config:

let g:eregex_force_case = 1

Then you will have case sensitive match by default. You can always change it by adding /i modifier.



  • Support ignorecase, smartcase. Add force case sensitive mode.


  • Support for ignorecase


  • Support for the backword search.
  • Support for the count argument.
  • Use function to auto map keys.
  • Support for custom search delimeters.
  • hlsearch works fine.


Author : 安久津
Origin : eregex.vim
Maintainer : othree

See :help eregex-license-to-use for license information.

You can’t perform that action at this time.