fuzzylogic25 wrote:
>
> ok i seemed to have got it working, i think. For the command "+p I just
> typed 'p' and it worked.
>
hmm..it's impossible, unless you typed first ':CopyMatches "', because
otherwise it will be copied into the clipboard register (i.e. "+).
to recap, by default, CopyMatches copies into the clipboard, which is the "+
register, and therefore you have to use "+p, but you can override this by
specifying CopyMatches <register_name> where register_name can be 'a' (type
just a w/o quotes) or 'b' etc. and in this case you will have to use "ap,
"ab respectively etc. or you can type CopyMatches " and then it will be
saved to the "-register where in this case you will be ok to use later just
p w/o any preliminaries.
> I noticed that across many other websites they have stuff like "do "+2yy
> to yank 2 links" when all you need to type is just the 2yy part.
>
> So how come you add the "+ ?
>
from the help pages (cmdline.txt line 631)
"Each may be followed (several times) by '+' or '-' and an optional
number.
This number is added or subtracted from the preceding line number. If the
number is omitted, 1 is used."
type :help :range
hope i didn't make a mistake, after all im new to vim just like you
Regards
alex
Also, is there a maximum size a document must be for vim to load? or a
maximum size for a copy and paste? I am dealing with text files that are
well over 100MB
--
View this message in context:
http://old.nabble.com/search-for-occurrences-in-document-and-copy-it-tp28838398p28868660.html
Sent from the Vim - General mailing list archive at Nabble.com.
--
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