paste gvim --> lyx
Hi list, building a new gentoo system fro scratch with quite some documentation i often have the need to cut some lines from gvim to insert them into my lyx document. Doing so I loose all line breaks. For longer peaces of code this is quite annoying. IIRC this topic has already been discussed in this list but i didn't save the contributions, and ggogling didn't give what I was looking for. If somebody can give me a hint it would save me a lot of time TIA Hellmut -- Dr. Hellmut Weber m...@hellmutweber.de Degenfeldstraße 2 tel +49-89-3081172 D-80803 München-Schwabing mobil +49-172-8450321 please: No DOCs, no PPTs. why: tinyurl.com/cbgq
Re: paste gvim --> lyx
Hellmut Weber wrote > Hi list, > building a new gentoo system fro scratch with quite some documentation i > often have the need to cut some lines from gvim to insert them into my lyx > document. Doing so I loose all line breaks. > For longer peaces of code this is quite annoying. > IIRC this topic has already been discussed in this list but i didn't save the > contributions, and ggogling didn't give what I was looking for. > If somebody can give me a hint it would save me a lot of time > TIA > Hellmut The menu entry Edit > Paste Special > Plain Text can help you. The copied text is pasted in LyX and inserted as Paragraphs, the line breaks of the text will start a new paragraph in LyX. I hope this works for you Ignacio
Re: paste gvim --> lyx
Hi Ignacio, Ignacio García schrieb: El 27 de julio de 2009 23:16, Hellmut Weber escribió: Your recipe does not work for me when * marking text in gvim using shift-V / C-v * marking text with the mouse from the output in a terminal (konsole) So thanks a lot, kedit provides a workaround. Do you have any idea what to do with vim and from text output to a terminal? In gvim Edit > Copy and in LyX Paste Special works fine here And with gnome-terminal works the same too: Marking text with the mouse, Edit > Copy or Ctrl-Shift-C then in LyX, Edit>PasteSpecial>SimpleText or Ctrl-Shift-C and the text is pasted with line breaks (Sometimes I use the middle mouse button to paste, but no line breaks) I think you use kde (I do not) and there the things can be a bit different. Perhaps you get better help from kde users in LyX users list. Thanks that did it ;-))) Sorry that I didn't mention KDE, your assumption is correct. A bit of further testing shows that this process can be optimezed in both cases: Konsole: 1. Mark text using the mouse 2. shift+ctrl+c 3. switch to lyx 4. shift+ctrl+v gvim: 1. Mark text using shift+V + arrow keys 2. shift to lyx 3. shift+ctrl+v Whenever I can I avoid using the mouse. Thanks again and happy LyXing Hellmut -- Dr. Hellmut Weber m...@hellmutweber.de Degenfeldstraße 2 tel +49-89-3081172 D-80803 München-Schwabing mobil +49-172-8450321 please: No DOCs, no PPTs. why: tinyurl.com/cbgq
[Fwd: Re: paste gvim --> lyx]
Sorry, it must be gvim: 1. Mark text using shift+V + arrow keys 2. alt+e, c (Menu "edit", "copy") 3. shift to lyx 4. shift+ctrl+v Cheers Hellmut Original-Nachricht ---- Betreff: Re: paste gvim --> lyx Datum: Tue, 28 Jul 2009 12:04:28 +0200 Von: Hellmut Weber Antwort an: m...@hellmutweber.de An: Ignacio García , LyX Users List Referenzen: <5994c290907261132o5fc80fefy84fb74c99e734...@mail.gmail.com> <4a6e192b.8030...@hellmutweber.de> <5994c290907280110x6ef8c702hf9340c1ebbdf4...@mail.gmail.com> Hi Ignacio, Ignacio García schrieb: El 27 de julio de 2009 23:16, Hellmut Weber escribió: Your recipe does not work for me when * marking text in gvim using shift-V / C-v * marking text with the mouse from the output in a terminal (konsole) So thanks a lot, kedit provides a workaround. Do you have any idea what to do with vim and from text output to a terminal? In gvim Edit > Copy and in LyX Paste Special works fine here And with gnome-terminal works the same too: Marking text with the mouse, Edit > Copy or Ctrl-Shift-C then in LyX, Edit>PasteSpecial>SimpleText or Ctrl-Shift-C and the text is pasted with line breaks (Sometimes I use the middle mouse button to paste, but no line breaks) I think you use kde (I do not) and there the things can be a bit different. Perhaps you get better help from kde users in LyX users list. Thanks that did it ;-))) Sorry that I didn't mention KDE, your assumption is correct. A bit of further testing shows that this process can be optimezed in both cases: Konsole: 1. Mark text using the mouse 2. shift+ctrl+c 3. switch to lyx 4. shift+ctrl+v gvim: 1. Mark text using shift+V + arrow keys 2. shift to lyx 3. shift+ctrl+v Whenever I can I avoid using the mouse. Thanks again and happy LyXing Hellmut -- Dr. Hellmut Weber m...@hellmutweber.de Degenfeldstraße 2 tel +49-89-3081172 D-80803 München-Schwabing mobil +49-172-8450321 please: No DOCs, no PPTs. why: tinyurl.com/cbgq -- Dr. Hellmut Weber m...@hellmutweber.de Degenfeldstraße 2 tel +49-89-3081172 D-80803 München-Schwabing mobil +49-172-8450321 please: No DOCs, no PPTs. why: tinyurl.com/cbgq
Re: [Fwd: Re: paste gvim --> lyx]
* Hellmut Weber wrote, On 28/07/09 11:08: > Sorry, > it must be > > gvim: > 1. Mark text using shift+V + arrow keys > 2. alt+e, c (Menu "edit", "copy") > 3. shift to lyx > 4. shift+ctrl+v Lyx could do with a paste mode that used CTRL+Enter type line joinings, which would make pasting into code-scraps much easier. Sam