On Thursday, March 16, 2017 at 7:14:09 AM UTC-5, a joeiam wrote:
> Greetings
>
> Have been using vi for a while but more as a minor tool just used in system
> manipulation. Found a useful tool called ledger-cli and have therefore been using much more of both vim and gvim to generate the plain text files.Using vim 8.0.34. on a Debian jessie vm.
>
> Issue:working in a file with about 6800 lines I find an error. Need to add two lines to one 'section'. Used +y to yank and then used +GP to place. Was absolutely
> unable to place the lines. Instead the 2 lines were place at the end of the document. Used +GP a couple more times not understanding why the 2 lines were not placed and then I looked at the doc.I had gone from 6814 lines to 12 877 lines and all of the lines were the 2 yanked (with a blank line before and after each iteration).
>
> I have read the manual a few times before this and more after and I just cannot understand why +GP won't let me place lines anywhere I am asking. Maybe I'm too used to the ctrl-c and ctrl-v too much (using wysiwyg programs for 30 years or so).
>
> Is there anyone who can explain the limitations and/or the exact functions of both +y and +GP - - - - please?
Where are you entering these commands? In normal mode "+y" is not a full command (+ goes down a line, then y is an incomplete yank command), and "+GP" doesn't make much sense (go down a line, go to end of file, paste before). If those are supposed to be ex commands or were specified from the command-line when launching Vim, then "+GP" isn't a valid command at all.
I suspect what might be happening is that if your file is folded on launching Vim, then a yank command will copy all text within the fold, and "GP" (from normal mode) will go to the end of the file and paste all that text. But as stated above the exact commands you gave don't actually do much of anything.
--
--
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:
Post a Comment