My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
"=============================================================================
" $Id$
" File: plugin/v_star.vim {{{1
" Author: Luc Hermitte <EMAIL:hermitte {at} free {dot} fr>
" <URL:http://code.google.com/p/lh-vim/>
" Version: 0.0.2
" Created: 30th Mar 2009
" Last Update: $Date$
"------------------------------------------------------------------------
" Description:
" Now v_* searches for the current selection
"
"------------------------------------------------------------------------
" Installation:
" - Requires lh-vim-lib
" - Drop into {rtp}/plugin
" History:
" v0.0.2: Special characters escaped
" TODO: Ā«missing featuresĀ»
" }}}1
"=============================================================================

" Avoid global reinclusion {{{1
if &cp || (exists("g:loaded_v_star") && !exists('g:force_reload_v_star'))
finish
endif
let g:loaded_v_star = '002'
let s:cpo_save=&cpo
set cpo&vim
" Avoid global reinclusion }}}1
"------------------------------------------------------------------------
" Commands and Mappings {{{1

vnoremap <silent> * <c-\><c-n>/<c-r>=escape(lh#visual#selection(), '/\^$*.[~')<cr><cr>
vnoremap <silent> # <c-\><c-n>?<c-r>=escape(lh#visual#selection(), '?\^$*.[~')<cr><cr>

" Commands and Mappings }}}1
"------------------------------------------------------------------------
let &cpo=s:cpo_save
"=============================================================================
" vim600: set fdm=marker:

Change log

r537 by luc.hermitte on Mar 27, 2012   Diff
- mu-template: vam-kr name changed to mu-
template@lh
Go to: 
Sign in to write a code review

Older revisions

r394 by luc.hermitte on Feb 1, 2011   Diff
- misc: v_*, and v_# correctly handle
special search related characters
r182 by luc.hermitte on May 16, 2010   Diff
- misc [v_star]: Forces v_* to search
for the current selection
All revisions of this file

File info

Size: 1480 bytes, 41 lines

File properties

svn:keywords
Date Author Revision Id
Powered by Google Project Hosting