Hey Mattias,

this is an even better attempt. But the command you suggest didn't
work im my .vimrc, I got an error: E492: Not an editor command: ^Igg
$<C-V>G$A \\<Esc>, maybe you can correct because I'm not quite
familiar with the syntax off own command mappings.

Matthias

On Jan 20, 12:34 pm, Mattias Fliesberg <[email protected]>
wrote:
> 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, visithttp://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

Reply via email to