I would use visual block mode. Something like this should work... gg$<C-V>G$A \\<Esc>
// Mattias * Matthias Guenther ([email protected]) wrote: > Hey, I have the following text: > > mediocrity & \ldots & unbedeutender Mensch, mäßige Begabung > mortar & \ldots & Mörser, Kelle > obedient & \ldots & folgsam, fügsam, gehörig > omniscient & \ldots & allwissend > piecemeal & \ldots & Stück für Stück, bruchstückhaft > pigeon & \ldots & Taube > pnedulum & \ldots & Pendel > prescription & \ldots & Rezept, Verjährung > quicksand & \ldots & Treibsand > quiver & \ldots & der Köcher > reap & \ldots & ernten, mähen > repugnant & \ldots & abscheulich, abstoßend, widerwärtig > resemblance & \ldots & die Ähnlichkeit > reverent & \ldots & ehrerbietig, ehrfürchtig > screwdriver & \ldots & Schraubendreher > semblance & \ldots & Ähnlichkeit, Anschein > shed & \ldots & Baracke, Hütte, Fach > stewardship & \ldots & Verwaltung > syllabus & \ldots & Auszug, Lehrplan > tender & \ldots & Angebot, Gebot > to abdicate & \ldots & abdanken > to pave & \ldots & befestigen, pflastern > viable & \ldots & brauchbar, durchführbar > > Through which command (maybe substitute via s/pattern/replace/g) can I > add backslashes add the end of each line, so that I get the following > structure: > > mediocrity & \ldots & unbedeutender Mensch, mäßige Begabung \\ > mortar & \ldots & Mörser, Kelle \\ > obedient & \ldots & folgsam, fügsam, gehörig \\ > omniscient & \ldots & allwissend \\ > piecemeal & \ldots & Stück für Stück, bruchstückhaft \\ > ... > > I need this for tabular items in tex. > > Thanks for ya help > Matthias > > -- > 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 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
