I wrote a function which replaces the vim "r" normal command. But then vim the
normal command "." breaks. The simplest way to reproduce it is to use:
fun! Replace()
let char=nr2char(getchar())
exe "normal! r".char
endfun
nmap r :call Replace()<CR>
then rx will replace a letter the current cursor position to x. The . register
will shows x. But if I use . the text from the current cursor position till
the place where I used rx is copied into the buffer. Any ideas how to get
. work?
Thanks,
Marcin
--
You received this message from the "vim_use" 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
No comments:
Post a Comment