> See :h map-error.

Oops, thanks!

I was trying to make the ";," motion always one-way regardless of the
previous "fF" motion. Thus I don't need to remember the movement direction,
only the target character for motion repeat. Hope this concept helps!

I came up with a solution to simply remapping "F":

NXnoremap <silent> F :<C-U>call Ff()<CR>
function! Ff()
  let n = getchar()
  if n == 27 " though not necessary
    return
  endif
  let c = nr2char(n)
  execute 'silent! normal! F'.c.'hf'.c
endfunction

-- 
Regards, Bohr Shaw

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui