Sunday, June 26, 2016

Re: Continuation line doesn't work when executing from register

Cesar Romani wrote:

> I'm using vim 7.4.1952 on Windows 7.
> Suppose I have two files on the same folder: test1.txt and test2.txt.
> I have 'set nocp' in both of them.
>
> test1.txt contains the following code, and I visually select it and copy
> it to the clipboard with '<,'>y+:
>
> nn <silent> <Plug>RDF :'{,'}s/-\n//ge
> \ :call repeat#set("\<Plug>RDF")<cr>
> map ,b <Plug>RDF
>
> then I go to test2.txt and do @+
> then I get an error:
>
> E10: \ should be followed by /, ? or &
>
> But if, on test1.txt, I do 'source test2.txt' or 'runtime test2.txt,' it
> works.

The ":source" command executes Ex commands, the @r command executes
Normal mode commands. That's quite different.

--
"Microsoft is like Coke. It's a secret formula, all the money is from
distribution, and their goal is to get Coke everywhere. Open source is like
selling water. There are water companies like Perrier and Poland Spring, but
you're competing with something that's free." -- Carl Howe


/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
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

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

No comments: