Is this what you want ?:
remap f,F to be multi-line
noremap silentf :call OneCharSearch(1)CR
noremap silentF :call OneCharSearch(0)cr
noremap ; n
noremap , N
function! OneCharSearch(forward)
op is '/' or '?'
let x= getchar()
let c=nr2char(x)
echo 'c='.c
if x == 27 |
On Sat, Jun 10, 2006 at 09:27:50PM +0200, Yakov Lerner wrote:
remap f,F to be multi-line. Supports counter before f,F.
finds special chars properly. Yakov Lerner
noremap silentf :call OneCharSearch(1)CR
noremap silentF :call OneCharSearch(0)cr
noremap ; n
noremap , N
function!
On Sat, Jun 10, 2006 at 10:51:24PM +0200, Marc Weber wrote:
[...]
Can you do 3f{ this way ?
Don't know if this is relevant, but you can do similar movements with ]}
and [{, which jump to enclosing } or { respectively.
--
with kind regards
Thor Andreassen
On Sat, Jun 10, 2006 at 11:13:02PM +0200, Thor Andreassen wrote:
On Sat, Jun 10, 2006 at 10:51:24PM +0200, Marc Weber wrote:
[...]
Can you do 3f{ this way ?
Don't know if this is relevant, but you can do similar movements with ]}
and [{, which jump to enclosing } or { respectively.
It is