README

October 18, 2010 ยท View on GitHub

This is a mirror of http://www.vim.org/scripts/script.php?script_id=2731

sherlock.vim add completion from current buffer for command line mode ':' after a '/', and in command line mode '/' and '?'.

By default, it use for forward completion, and for backward completion.

For example: :%s/tes list all word which begin with 'tes' after current cursor position; :%s/tes list all word which begin with 'tes' before current cursor position; /tes list all word which begin with 'tes' after current cursor position; /tes list all word which begin with 'tes' before current cursor position; ?tes list all word which begin with 'tes' after current cursor position; ?tes list all word which begin with 'tes' before current cursor position;

In ':' mode, completion is available only after a '/'.

When the right string is in command line, you can:

  1. Validate it with , or type to go away from command line if you are in '?' or '/' mode;
  2. Validate it with or '/', or type to go away from command line if you are in ':' mode.

You can override the default mapping with something like that in your .vimrc: cnoremap <C->esherlock#completeBackward() cnoremap <C->esherlock#completeForward()

You can disable this plugin with this line in your .vimrc: let sherlock#disable = 1

Please, report any bug to sherlock.vim[..at..]mageekbox.net.