On Thu, January 20, 2011 12:17 pm, Matthias Guenther 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.
:%s/$/\\\\/ You can possibly also add the preceeding space, if you need that as well. regards, Christian -- 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
