Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to copy many "selected" full lines to the clipboard... The lines are typically seperated from each other in the file...

Is either Gedit or Gvim capable of this? ... What I would prefer is to only need press a single key to mark a line (like F2 .. but I think that Vim would need more keystrokes :( ... The next step I envisage, is another key(combo) to copy all the "selected" lines to the clipboard...

I'm open to other suggestions of how to do this; maybe there is some "block-mode".. but I do want it to be fast to select each line (must be a full line including the trailing newline)....
I've mentioned Gedit and Gvim as they are the most commonly used Ubuntu editors (I think)...but maybe another editor does this exact thing...

Maybe just appending to the clipboard will work. but that really is a last resort! as it is big-time error-prone... btw, I don't know the key-combo for appending to the clipboard, so I'd like to know about this too.., thanks

PS. I've tried Gedit's advanced-bookmarks plugin, but it doesn't seem to do what I want ....

Notepad++ has this copy-all-bookmarked-lines feature, but although it is open-source (based on SciTe), it only runs under wine and shows a few bugs in that environment.... but I'd really like a native Linux text editor for this ..

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

Neither gedit nor gvim have that capability.

share|improve this answer
    
It's starting to look that way, but I'll hang out for a while, 'til there are more views.... I'm amazed that Vim can't do it.. (but there may be a script for it lurking somewhere.... I've not used vim, other than for a quick look.. the keybinding of Emacs are easier for me, but both are a big learning curve...I think Emacs (and probably Vim) are capable of this, but in the meantime I've re-acquainted myself with Notepad++ (for this issue only)... I've also knocked up a selection-append script; it's handy, but it's clunky compared to bookmark selection control (eg. invert bookmarked lines... –  Peter.O Apr 13 '11 at 8:02
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.