Diese Tabellen sind nicht sehr benuzterfreundlich:
| ::: | AM335x | UART2 | | | | | Multiplexed | | ::: | AM335x | UART3 | TTL | | • | | | | ::: | AM335x | UART4 | RS232 | • | • | | | | ::: | AM335x | UART5 | | \\ | \\ | \\ | Multiplexed | | ::: | AM335x | USB0 | USB2517 | • | • | • | |
Die Spaces werden aber für die zentrierte Darstellung benötigt.
Mit Vim kann man das align Plugin benutzen: https://github.com/vim-scripts/Align
Mit dem Vim Kommando :Align \^ |
kann man die Tabelle so darstellen:
^ Component ^ Device ^ Interface ^ Function ^ Pre-release ^ Rev 0100 ^ Rev 0101 ^ Remarks ^ " | TQMa335x | AM335x | UART0 | RS485 | - | • | | | | ::: | AM335x | UART1 | | | | | Multiplexed | | ::: | AM335x | UART2 | | | | | Multiplexed | | ::: | AM335x | UART3 | TTL | | • | | |
In der Darstellung ist das bearbeiten einfacher.
Mit den Kommandos
:% s/\s\+|\s\+/ | /g :% s/\s\+\^\s\+/^/g :% s/^\s\+|/|/g :% s/|\s\+•\s\+/| • /g
kann man die Datei wieder zurück in Wiki-Syntax konvertieren.