Vim Kurztipp Nr.1

Posted by Daniel on Februar 26, 2008

vim ist ein toller Editor. Damit ich das nicht dauernd vergesse, hab ich vor, hier ein paar der speziellen Tricks vorzustellen.

Anfangen will ich heute eigentlich nur mit einem Link und einer kleinen Zusammenfassung dazu: Sehr pragmatische kurze Einführung in Vim und interessante Features

:set spell -> z= schlägt alternative Wörter vor, zg fügt unbekanntes zu eigener Datei hinzu, ]s sucht vorheriges und [s nächstes falsch geschriebenes Wort
:NoMatchParen schaltet Klammernsuche aus
[Ctrl+x] [Ctrl+o] vervollständigt bekannte Tags etc

Arbeit mit Tabs:

:tabs - View a list of tabs that are open with the file names. Use the command ‘:tabs’ and Vim will display a list of all the files in the tabs. The current window is shown by a “>” and a “+” is shown for any modifiable buffers.
:tabc - Close the current tab.
:tabnew - Open a new file for editing in a separate tab.
:tab split - Open the file in the current buffer in a new tab page.
:tabn - Switching to the next tab page.
:tabp - Switch to the previous tab page.
:tabr[ewind] - Go to the first tab page. You get the same effect when you use the :tabf[irst] command.
:tabo - Close all other tab pages.

Zum Abschluss, der Klassiker: Vim Assistent